svn log 可以使用通过基本身份验证传递的显式凭据运行吗?
我有一些从 TeamCity 服务器运行 svn log 的戏剧,我之前在 为什么 TeamCity 命令行运行程序在“系统”下执行?
没有相反的证据,看起来就像是在本地运行的构建服务器调用 svn log 时一样无法访问 SVN 存储库的系统帐户。尽管并不理想,但看起来实现此目的的唯一方法是在 svn log 命令中传递凭据。
SVN 1.0 文档 显示了 svn 上可用的用户名和密码参数log 命令,但 SVN 1.6 文档(以及 1.5,就此而言),似乎不再有这些参数。还可以吗?对于以不是当前帐户的身份运行命令还有其他想法吗?
I'm having some dramas running svn log from a TeamCity server which I've previously asked about in Why does the TeamCity command line runner execute under “System”?
With no evidence to the contrary, it looks like when svn log is invoked by the build server it runs under the local system account which doesn't have access to the SVN repository. Although not ideal, it looks like the only way to make this work is to pass the credentials in the svn log command.
The documentation for SVN 1.0 shows username and password parameters available on the svn log command but the SVN 1.6 documentation (and 1.5, for that matter), no longer seem to have these parameters. Is it still possible? Any other thoughts on running the command under an identity that isn't the current account?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
运行
svn help log,
它看起来像--username AR
G和--password ARG
是全局选项
。文档 也是如此。
Running
svn help log,
it looks like--username AR
G and--password ARG
areGlobal options
.Same mentioned in the documentation as well.