Hudson 和 SVN 存储库
我使用 hudson 作为我的 连续集成工具。我需要从我的 subversion 存储库下载一个 zip 文件
当我运行 svn co 时,这给了我以下错误...
/somedir/*.zip 指的是一个文件,而不是一个目录
是否无法签出 zip 文件?
完成后,我想运行一个脚本来提取它并设置目录结构。
下载 zip 文件是一项非常严格的要求,无法解决。
I am using hudson as my continuous-integration tool. I need to download a single zip file from my subversion repository
When I run svn co
, this gives me the following error ...
/somedir/*.zip refers to a file, not a directory
Is it not possible to check out a zip file?
Once that is done I would like to run a script that extracts it and sets up a directory structure.
Downloading a zip file is a very strong requirement that cannot be worked around.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
正如几个人已经提到的,你无法从 subversion 中签出单个文件。首先将 zip 文件放入 subversion 也是没有意义的。这就像将二进制文件置于颠覆中一样。
但是,至少有两件事可能对您有帮助。
As several people already mentioned you can't check out a single file from subversion. It also does not make sense to put a zip file into subversion in the first place. That would be like putting a binary into subversion.
However, there are at least two things that might help you.
为什么不在 Hudson 设置中引用包含 zip 的文件夹?之后,触发执行解压缩等操作的脚本或 Maven 目标或 Ant 任务。
不要签出 zip 文件,而是签出包含 zip 文件的文件夹。在 Hudson 中配置一个构建,它会签出您的文件夹并触发脚本。
请参阅以下文档的“Shell 脚本和 Windows 批处理命令”部分: http://wiki.hudson-ci.org/display/HUDSON/Building+a+software+project
Why don't your refer to the folder containing the zip in your Hudson setup? After that trigger a script or Maven goal or Ant task that does the unzipping etc.
Instead of checking out the zip file checkout the folder containing the zip file. Configure a Build in Hudson which checkouts your folder and triggers a script.
See the "Shell Scripts and Windows Batch Commands" part of the following document : http://wiki.hudson-ci.org/display/HUDSON/Building+a+software+project