pipeline sh directive fails for all non-zero exit codes?

42 views
Skip to first unread message

Mark L

unread,
May 25, 2016, 1:11:44 PM5/25/16
to Jenkins Users
I'm play with the pipeline sh directive and can't get it to behave how I want it to. Maybe there's a workaround?

The bash script I'm calling has two success modes with the following semantics: (1) everything succeeded, now go onto the next (Jenkins) stage, and (2) everything succeeded and the build done, so don't run any further stages.

How do I return two separate exit codes and not have the pipeline mark one of them as failed (in red)?
How do I exit the pipeline early (not run all stages), and have the build marked as successful?

Thanks!


Mark L

unread,
May 25, 2016, 2:56:40 PM5/25/16
to Jenkins Users
Reply all
Reply to author
Forward
0 new messages