即使构建失败,如何继续詹金斯管道中的阶段 [英] How to continue a stage in jenkins pipeline even if the build fails
本文介绍了即使构建失败,如何继续詹金斯管道中的阶段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
所以我有一个包含多个阶段的管道,每个阶段都有几个构建作业过程.当我运行管道时,在任何一个版本中都失败了,那么该阶段就会失败,并且不会在该阶段中构建其他版本.我该如何解决这个问题,以便在此阶段建立剩余的工作?
So I have a pipeline with multiple stages and with each stage there are couple of build job processes. When I run the pipeline and there is a failure in any one of the builds the stage fails and doesn't build the other builds in the stage. How can I get around this so it builds the remaining jobs in the stage?
推荐答案
您可以使用约定
try {
// your build steps
} finally {
// always run...
}
这篇关于即使构建失败,如何继续詹金斯管道中的阶段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文