简体   繁体   English

如何在下游作业中使用刚创建的构建

[英]How can I use just created build in downstream job

I have 2 jobs in Jenkins: 我在詹金斯(Jenkins)有2个工作:

  1. Build and run unit tests 建立并运行单元测试
  2. (Build and) run integration tests (构建并)运行集成测试

Job-2 is a Downstream project of Job-1 . Job-2Job-1的下游项目。

Job-1 initiates build and run unit tests on it. Job-1在其上启动构建并运行单元测试。 Job-2 initiates build as well and run integration tests. Job-2也会启动构建并运行集成测试。

I would like to change that, and make Job-2 to run the tests on the result build that was initiated by Job-1 . 我想更改它, 并使Job-2在由Job-1启动的结果构建上运行测试。

You could use Copy Artifact Plugin and use Job-1 artifacts from Job-2 to run some tests on them. 您可以使用Copy Artifact插件,并使用Job-2中的Job-1工件对其进行一些测试。 Refer to this post for more information. 请参阅此帖子以获取更多信息。 Hope it will help. 希望它会有所帮助。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我如何将上游作业的内部版本号传递给下游 - how can i pass the build number of upstream job to downstream 如何使用构建后 groovy 构建下游作业 - How to build a downstream job with postbuild groovy 如何延迟触发 Jenkins 下游构建作业? - How to trigger Jenkins downstream build job with a delay? 我正在使用带有参数的构建管道作业来调用 Jenkins 中的下游作业; 如何在帖子块中打印主要作业名称? - I'm using a build pipeline job with parameters to call a downstream job in Jenkins; how do I print the main job name in the post block? 如何防止在Jenkins中触发下游项目构建? - How can I prevent triggering a downstream project build in Jenkins? 如何获取上游作业在管道中的下游作业中运行的节点名称 - How can I get the node name where the upstream job has run in the downstream job in pipeline 如何在声明性管道中获取下游作业的 build_number? - How do I get the build_number of a downstream job in a declarative pipeline? 如果新构建在管道中等待,如何强制Jenkins跳过下游作业? - How to force Jenkins to skip a downstream job if a new build is waiting in the pipeline? 在管道作业中,如何使用他们选择的参数构建自由式下游作业? - In pipeline job how to build freestyle downstream jobs with their choice parameters? 即使在下游项目中,如何让Jenkins Job中的已启动用户获得? - How can I get the started user inside Jenkins Job even in downstream project?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM