Blocking a jenkins task until all downstream tasks complete?

浪尽此生 提交于 2019-12-21 07:19:14

问题


Is there any way in jenkins to block a given task on all its downstream tasks? I have a series of functional test phases, and each needs to run against a server after deployment. The server should not be updated while tests are running, however.

So I have jobs:

A -> B -> C

I need A to block until C completes.

How can I do this?


回答1:


Take a look at the Advanced Project Options, "Block build when downstream project is building" option for project A. I believe that will prevent multiple instances of A running until all downstream projects (ie, B and C) have completed.




回答2:


As Jason mentioned the setting is under the "Advanced Project Options" section and looks like the following:



来源:https://stackoverflow.com/questions/6877141/blocking-a-jenkins-task-until-all-downstream-tasks-complete

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!