在哈德逊的工作之间共享构建工件 [英] Sharing build artifacts between jobs in Hudson

查看:19
本文介绍了在哈德逊的工作之间共享构建工件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 hudson 设置我们的构建过程.

I'm trying to set up our build process in hudson.

Job 1 将是一项超快速(希望如此)的持续集成构建工作,并且会经常构建.

Job 1 will be a super fast (hopefully) continuous integration build job that will be built frequently.

工作 2,将负责定期运行或手动触发的综合测试套件.

Job 2, will be responsible for running a comprehensive test suite, at a regular interval or triggered manually.

Job 3 将负责在代码库中运行分析工具(很像 Job 2).

Job 3 will be responsible for running analysis tools across the codebase (much like Job 2).

我尝试使用高级项目选项 > 使用自定义工作区"功能,以便在 Job 1 中编译的代码可以在 Job 2 和 3 中使用.但是,似乎所有构建工件都保留在 Job 1 工作区中.我这样做对吗?有没有更好的方法来做到这一点?我想我正在寻找类似于构建管道设置的东西......以便可以共享事物并且可以分阶段执行适当的作业.

I tried using the "Advanced Projects Options > use custom workspace" feature so that code compiled in Job 1 can be used in Job 2 and 3. However, it seems that all build artifacts remain inside that Job 1 workspace. I'm I doing this right? Is there a better way of doing this? I guess I'm looking for something similar to a build pipeline setup...so that things can be shared and the appropriate jobs can be executed in stages.

(我也考虑过使用批处理任务"...但似乎无法安排这些任务?只能手动触发?)

(I also considered using 'batch tasks'...but it seems like those can't be scheduled? only triggered manually?)

欢迎提出任何建议.谢谢!

Any suggestions are welcomed. Thanks!

推荐答案

你可能想试试 Copy Artifact 插件:

You might want to try the Copy Artifact plugin:

http://wiki.hudson-ci.org/display/HUDSON/Copy+Artifact+插件

您的持续工作可以构建必要的工件,而您的其他两项工作可以将它们拉进来进行分析.

Your continuous job can build the necessary artifacts, and your other two jobs can pull them in to do analysis.

这篇关于在哈德逊的工作之间共享构建工件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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