CruiseControl.rb SVN 访问被拒绝
我遇到了一个问题,我本来可以很好地向 CC.rb 添加项目,但是当我启动该服务时,每次它检查 Subversion 是否有较新版本时,我都会收到“访问被拒绝”消息。
我正在使用 --trace 运行并从项目的工作目录运行它正在尝试的确切命令:
svn --non-interactive log --limit 1 --revision HEAD:1 --verbose --xml
导致响应按预期返回。
有人能指出我正确的方向吗?
更新
转移到 http,因为 https 似乎是很多令人头痛的根源,但这并没有帮助。
我还对源进行了黑客攻击,以通过上述命令传递我的用户名和密码,但这也没有帮助。
I'm having a problem where I have been able to add a project to CC.rb perfectly fine but when I start the service I get "Access Denied" messages each time it checks with Subversion for a newer version.
I'm running with --trace and running the exact command it is trying from the project's work directory:
svn --non-interactive log --limit 1 --revision HEAD:1 --verbose --xml
results in a response coming back as expected.
Can anyone point me in the right direction?
Update
Moved onto http as https seems to be the source of a lot of headache but this has not helped.
I've also hacked at the source to get my username and password passed with the above command and that hasn't helped either.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您使用 SSL,请确保运行脚本的用户帐户具有 SSL 的缓存证书权限。
这是针对 Cruisecontrol.net,它是一项在 Windows 中以非常特定的用户身份运行的服务。 您可能需要弄清楚 ruby.exe 的模拟规则,以确定它是否作为网络服务运行,或者您是否可以让它作为您自己运行。
这里有一个链接,介绍如何使 cc.rb 作为 Windows 服务运行,并像 cc.net 一样运行,尽管重量更轻。 抱歉,错误链接实际上位于 nabble,你需要 cygwin。
Make sure that if you are using SSL that the user account running the script, has a cached certificate permission for the SSL.
That is for cruisecontrol.net, which is a service that runs as a very specific user in windows. You may need to figure out the impersonation rules for ruby.exe to determine if it runs as network service, or if you can get it run as yourself.
Here is a link on how to make cc.rb run as a windows service and behave like cc.net although still lighter weight. Sorry wrong link its actually on nabble, and you'll need cygwin.
如果您使用从 git 存储库中提取的最新版本的 CruiseControl.rb,它应该可以解决您的问题(至少对我来说是这样)。
git命令是:
如果您在 Windows 上运行,则可能需要安装 git。 您可以在此处获取 msysgit:http://code.google.com/p/msysgit/ downloads/list
希望这有帮助。
If you use the latest version of CruiseControl.rb as pulled from their git repo, it should solve your problem (at least it did for me).
The git command is:
You may need to install git if you're running on windows. You can get msysgit here: http://code.google.com/p/msysgit/downloads/list
Hope this helps.
自从我使用 CruiseControl.rb 以来已经有一段时间了,但我确实记得它使用存储在计算机上的通用凭据进行身份验证/访问 SVN 存储库。 这很好,因为不需要每次都输入它们,但是当其中一个开发人员(或其他进程)使用与 CruiseControl 预期不同的凭据从该机器连接到 SVN 存储库时,就会引起很多麻烦。 您可以检查一下是否正在发生/发生了这种情况。 我相信这可能已在最新版本中修复,或者至少作为功能/错误修复在队列中。
Its been a while since I worked with CruiseControl.rb but I do remember that it used common credentials stored on the machine for authentication/access to SVN repositories. This was nice since they need not be entered each time, but caused a lot of headaches when one of the developers (or some other process) would connect to a SVN repo from that machine using different credentials than what CruiseControl was expecting. You may what to check to see if this is happening/happened. I believe this may have been fixed in the latest version or is at least in the queue as a feature/bug fix.