获取hudson以检出源到特定目录 [英] Get hudson to checkout source to a specific directory

查看:309
本文介绍了获取hudson以检出源到特定目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这似乎是一个简单的任务,但对于我的生活我不能让哈德森签出我的源到一个特定的目录。
我可以使用svn在命令行上检出源。
我尝试在源代码管理下指定本地模块设置,但没有骰子。

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.

我将其设置为c:\source\trunk,当我运行构建。

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

当我尝试设置一个相对路径,它说我不能使用绝对目录。
ie \source \trunk

When i try to set a relative path it says I can't use absolute directories. i.e \source\trunk

我想要发生的事情是hudson checkout我的源码到c:\source\trunk

All i want to have happen is hudson checkout my source to c:\source\trunk

推荐答案

由于sbi已经说过:


路径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.

当使用'\'启动路径时,表示路径是绝对路径。您有两个选项。

When you start a path with '\' than it means that the path is absolute. You have two options.


  1. 为作业定义自定义工作区。这可能是c:\source,并且源的检出将是中继(或如果检出您的svn网址以/ trunk结尾则将其留空。

  2. 检查它到您的标准工作区,然后将其复制到C:\source\trunk。

因为我尽量避免自定义工作区几乎所有的成本。

BTW, I would favor the second option, because I try to avoid the custom workspace at almost all costs.

这篇关于获取hudson以检出源到特定目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆