脚本式pipeline中failFast使用 发表于 2019-11-02 | 更新于 2019-11-23 | 阅读次数: 12345678910111213141516171819202122def generateJobStage(String jobName) { return { node('master') { echo "${jobName} start" sleep 5 sh "exit 1" echo "job end" } }}script { def jobs = ['jobA', 'jobB', 'jobC'] def parallelStagesMap = jobs.collectEntries { def jobName -> ["${jobName}", generateJobStage(jobName)] } parallelStagesMap.failFast = true println parallelStagesMap stage("test") { parallel parallelStagesMap }} 打赏 微信支付