简体   繁体   中英

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.

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

在此输入图像描述

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

在此输入图像描述

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.

在此输入图像描述

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM