I would like to get the result of my jenkins build job either failed (red), unstable (yellow) or successfull (green)...
If i return non zero from my shell script i c
Simple way in a pipeline:
try { sh "" } catch (Exception e) { // Caught a non-zero exit code // Mark build as unstable. currentBuild.result='UNSTABLE' }