如何在下游作业中使用刚刚创建的构建 [英] How can I use just created build in downstream job

查看:140
本文介绍了如何在下游作业中使用刚刚创建的构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Jenkins有2个工作:


  1. 建立并运行单元测试

  2. < and)运行集成测试

Job-2 Job-1



Job-1 启动构建并对其运行单元测试。
Job-2 启动构建以及运行集成测试。



我想更改它,

h2_lin>解决方案

您可以使用复制神器插件,并使用Job-2中的Job-1工件对它们运行一些测试。请参阅此帖子了解更多信息。希望它会有所帮助。


I have 2 jobs in Jenkins:

  1. Build and run unit tests
  2. (Build and) run integration tests

Job-2 is a Downstream project of Job-1.

Job-1 initiates build and run unit tests on it. Job-2 initiates build as well and run integration tests.

I would like to change that, and make Job-2 to run the tests on the result build that was initiated by Job-1.

解决方案

You could use Copy Artifact Plugin and use Job-1 artifacts from Job-2 to run some tests on them. Refer to this post for more information. Hope it will help.

这篇关于如何在下游作业中使用刚刚创建的构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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