Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does Jenkins pipeline Stage View show red for all stages if only one stage failed?

I noticed that if any pipeline stage fails then all previous stages show red. Is it possible to control the color of previous stages so they are green regardless of subsequent stages? My last stage catches an error. If you hover over any previous stage it says 'success' but shows red. enter image description here

like image 431
mdo123 Avatar asked Oct 30 '22 01:10

mdo123


1 Answers

This is because a build can only be successful or failed. There is no such thing as a partially successful build. The stage shows you where it probably failed but nothing more, you still have a 0 or 1.

like image 97
sorin Avatar answered Nov 15 '22 05:11

sorin