问题
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?
回答1:
you can use the convention
try {
// your build steps
} finally {
// always run...
}
来源:https://stackoverflow.com/questions/40942178/how-to-continue-a-stage-in-jenkins-pipeline-even-if-the-build-fails