user2573747
user2573747

Reputation: 15

Jenkins - How to make other build steps run even if previous build step fail

I have multiple build steps in my Jenkins Free style Job. If one of the build step fails, the the following build step doesn't get triggered.

I am Ok if the 1st build step fails as these are tests and could fail & would like to retain the $BUILD_STATUS value for reporting, but I still want the 2nd build step to run & not be skipped because build step 1 failed.

I also tried to combine both the build steps together into one but its still the same - the commands from the 2nd build step do not get executed if the commands in the 1st build step fail. error Thanks Sa

Upvotes: 0

Views: 714

Answers (1)

HistN
HistN

Reputation: 26

Jenkins pipelines separates your pipeline into stages and steps that can be run independently.

Upvotes: 1

Related Questions