Sergey Vasiliev
Sergey Vasiliev

Reputation: 823

Jenkins: aborting the execution of jobs in a multijob

I am using Jenkins. There is a multijob that calls some jobs. I can stop the execution of this multijob (both manually and by timeout, using Build-timeout plugin). Nevertheless, the jobs running by the current multijob, don’t cease its execution even in case of interruption of the multijob. Is there a way to make it so, that upon the forced shutdown of multijob, those jobs that were initiated would also cease working?

Thanks for the assistance.

Upvotes: 3

Views: 1873

Answers (1)

prudviraj
prudviraj

Reputation: 3744

Yes there is a option in multi job upstream job configuration to "Abort all other jobs"

enter image description here

have configured two child jobs. I have aborted parent job and it in turn aborted 2 child jobs

enter image description here

Try the same and feel free to revert in case you need additional information

Your multi job can have many multi phase's , we can make the multi project run other multi phase only when its previous multi phase is successful.

enter image description here

Bu enabling this if any child jobs fail in above phases the main job will automatically fail.

Upvotes: 1

Related Questions