Blocking a jenkins task until all downstream tasks

2019-04-04 09:09发布

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?

2条回答
家丑人穷心不美
2楼-- · 2019-04-04 09:26

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

Block build when downstream project is building

查看更多
狗以群分
3楼-- · 2019-04-04 09:43

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.

查看更多
登录 后发表回答