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!