让 hudson 将源签出到特定目录
这似乎是一个简单的任务,但在我的一生中,我无法让 Hudson 将我的源代码签出到特定目录。 我可以在命令行上使用 svn 查看源代码。 我尝试在源代码管理下指定本地模块设置,但没有骰子。
我将其设置为 c:\source\trunk 并在运行构建时得到此信息。
Started by user anonymous
Checking out http://mysvnserver/trunk
java.io.IOException: The filename, directory name, or volume label syntax is incorrect
at java.io.WinNTFileSystem.canonicalize0(Native Method)
at java.io.Win32FileSystem.canonicalize(Unknown Source)
at java.io.File.getCanonicalPath(Unknown Source)
at java.io.File.getCanonicalFile(Unknown Source)
at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:742)
at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:660)
at hudson.FilePath.act(FilePath.java:753)
at hudson.FilePath.act(FilePath.java:735)
at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:653)
at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:601)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1082)
at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:479)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:411)
at hudson.model.Run.run(Run.java:1280)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:293)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:137)
Finished: FAILURE
当我尝试设置相对路径时,它说我不能使用绝对目录。 即 \source\trunk
我想要发生的就是 hudson 将我的源签出到 c:\source\trunk
This seems like a simple task but for the life of me I can't get Hudson to checkout my source to a specific directory.
I can checkout the source using svn on the command line.
I tried specifying the Local Module setting under source code management but no dice.
I set it to c:\source\trunk and I get this when i run the build.
Started by user anonymous
Checking out http://mysvnserver/trunk
java.io.IOException: The filename, directory name, or volume label syntax is incorrect
at java.io.WinNTFileSystem.canonicalize0(Native Method)
at java.io.Win32FileSystem.canonicalize(Unknown Source)
at java.io.File.getCanonicalPath(Unknown Source)
at java.io.File.getCanonicalFile(Unknown Source)
at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:742)
at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:660)
at hudson.FilePath.act(FilePath.java:753)
at hudson.FilePath.act(FilePath.java:735)
at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:653)
at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:601)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1082)
at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:479)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:411)
at hudson.model.Run.run(Run.java:1280)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:293)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:137)
Finished: FAILURE
When i try to set a relative path it says I can't use absolute directories.
i.e \source\trunk
All i want to have happen is hudson checkout my source to c:\source\trunk
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
正如履行机构已经说过的那样:
当您以“\”开始路径时,意味着该路径是绝对路径。你有两个选择。
,我倾向于第二个选项,因为我几乎不惜一切代价尝试避免自定义工作区。
As sbi already said:
When you start a path with '\' than it means that the path is absolute. You have two options.
BTW, I would favor the second option, because I try to avoid the custom workspace at almost all costs.
像 SVN 这样的路径相对于工作区根。至少作业配置页面上的“本地模块目录”帮助是这么说的。
Paths like the SVN are relative to the Workspace root. At least that's what the help for "Local module directory" says on the Job configuration page.
另一个解决方法是在运行 Hudson 的同一系统中创建主从配置。在同一台机器上创建一个从属设备,并在从属配置中指向您希望项目检出的位置
The other workaround is to create MAster-Slave config in the same system on which Hudson is running. Create a slave on the same machine and point to the location where yu want yur projet to checkout in the Slave configuration