Cruisecontrol SVN 代理问题
当 Cruisecontrol 启动 svnbootstrapper 时,会在 Cruisecontrol 日志文件中记录异常。
2009-07-07 14:29:41,942 [BuildQueueThread] INFO BuildQueue - 现在添加到线程队列: trunk-edumatic-3-framework-client 2009-07-07 14:29:41,942 [Thread-25] INFO 项目 - 项目 trunk-edumatic-3-framework-client:引导 2009-07-07 14:29:41,942 [Thread-25] INFO ProjectController - trunk-edumatic-3-framework-client 控制器:构建进度事件:引导 2009-07-07 14:30:03,615 [Thread-26] 警告 SVNBootstrapper - svn:“repo-url”的选项:无法连接到服务器(主机) 2009-07-07 14:30:03,725 [Thread-25] INFO 项目 - 项目 trunk-edumatic-3-framework-client:空闲 2009-07-07 14:30:03,725 [Thread-25] INFO ProjectController - trunk-edumatic-3-framework-client 控制器:构建进度事件:空闲 2009-07-07 14:30:03,725 [Thread-25] 错误项目 - 尝试在项目 trunk-edumatic-3-framework-client 中构建时发生异常 net.sourceforge.cruisecontrol.CruiseControlException:svn 进程退出,错误代码 1 在net.sourceforge.cruisecontrol.util.CommandExecutor.executeAndWait(CommandExecutor.java:119) 在 net.sourceforge.cruisecontrol.util.Commandline.executeAndWait(Commandline.java:617) 在net.sourceforge.cruisecontrol.bootstrappers.SVNBootstrapper.bootstrap(SVNBootstrapper.java:134) 在 net.sourceforge.cruisecontrol.Project.bootstrap(Project.java:760) 在 net.sourceforge.cruisecontrol.Project.build(Project.java:192) 在 net.sourceforge.cruisecontrol.Project.execute(Project.java:147) 在 net.sourceforge.cruisecontrol.ProjectConfig.execute(ProjectConfig.java:402) 在 net.sourceforge.cruisecontrol.ProjectWrapper.run(ProjectWrapper.java:69) at java.lang.Thread.run(未知来源)
通过命令行 svn 或 windows tortoise svn 客户端执行更新时不会出现此问题。 服务器通过代理访问互联网,该代理在tortoise svn的网络设置中配置。 有没有办法告诉 Cruisecontrol 使用相同的代理?
有什么想法吗?
伯特
When cruisecontrol start an svnbootstrapper an exception is logged in the cruisecontrol log file.
2009-07-07 14:29:41,942 [BuildQueueThread] INFO BuildQueue - now adding to the thread queue: trunk-edumatic-3-framework-client
2009-07-07 14:29:41,942 [Thread-25] INFO Project - Project trunk-edumatic-3-framework-client: bootstrapping
2009-07-07 14:29:41,942 [Thread-25] INFO ProjectController - trunk-edumatic-3-framework-client Controller: build progress event: bootstrapping
2009-07-07 14:30:03,615 [Thread-26] WARN SVNBootstrapper - svn: OPTIONS of 'repo-url': could not connect to server (host)
2009-07-07 14:30:03,725 [Thread-25] INFO Project - Project trunk-edumatic-3-framework-client: idle
2009-07-07 14:30:03,725 [Thread-25] INFO ProjectController - trunk-edumatic-3-framework-client Controller: build progress event: idle
2009-07-07 14:30:03,725 [Thread-25] ERROR Project - exception attempting build in project trunk-edumatic-3-framework-client
net.sourceforge.cruisecontrol.CruiseControlException: svn process exited with error code 1
at net.sourceforge.cruisecontrol.util.CommandExecutor.executeAndWait(CommandExecutor.java:119)
at net.sourceforge.cruisecontrol.util.Commandline.executeAndWait(Commandline.java:617)
at net.sourceforge.cruisecontrol.bootstrappers.SVNBootstrapper.bootstrap(SVNBootstrapper.java:134)
at net.sourceforge.cruisecontrol.Project.bootstrap(Project.java:760)
at net.sourceforge.cruisecontrol.Project.build(Project.java:192)
at net.sourceforge.cruisecontrol.Project.execute(Project.java:147)
at net.sourceforge.cruisecontrol.ProjectConfig.execute(ProjectConfig.java:402)
at net.sourceforge.cruisecontrol.ProjectWrapper.run(ProjectWrapper.java:69)
at java.lang.Thread.run(Unknown Source)
The problem does not occur when executing an update trough the command line svn or the windows tortoise svn client.
The server accesses the Internet trough a proxy, which is configured in tortoise svn's network settings.
Is there a way to tell cruisecontrol to use that same proxy?
Any thoughts?
Bert
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您在 Windows XP 计算机上运行 Cruise,则可以尝试编辑文件 C:\Documents and Settings\user.name\Application Data\Subversion\server 中的代理设置。
我不确定其他操作系统中的等效文件,但通常会查找应用程序数据和其中的 subversion 目录。 该文件夹是在您第一次运行 Subversion 客户端时创建的,因此它应该已经存在于您的 Cruise 计算机中。
If you are running cruise on a windows XP machine, you can try editing the proxy settings in the file C:\Documents and Settings\user.name\Application Data\Subversion\server.
I am not sure about the equivalent files in the other operating systesm though, but in general look for application data and the subversion directory within. This folder gets created the first time you ran subversion client so it should be there in your cruise machine already.
我看不到为 svn 命令提供“代理”参数的任何可能性。 既不在 SVN 引导程序源 也不在 配置中参考。
但是...
您始终可以:
cvs
可执行文件来欺骗CruiseControl。 也许是一个名为cvs.bat
的批处理文件,它会简单地调用带有指定代理的附加参数的cvs
可执行文件。 我没试过。I don't see any possibility for providing 'proxy' argument to svn command. Neither in the SVN bootstrapper source nor in the config ref.
But...
You could always:
cvs
executable. Maybe a batch file calledcvs.bat
that would simply callcvs
executable with additional parameters specifying the proxy. I haven't tried that.