guylifestyle
guylifestyle

Reputation: 327

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?

Upvotes: 1

Views: 3877

Answers (1)

Amityo
Amityo

Reputation: 6311

you can use the convention

try {
    // your build steps
    } finally {
        // always run...
    }

Upvotes: 1

Related Questions