How to make jenkins job unstable from a bash script? -
in of jenkins jobs, have bash script.
in conditions, want make build instable.
when exit script code 0, build finish in success (green color) , when exit code job failed (red color).
is there way make jenkins job unstable (yellow color) bash script ?
if use pipeline plugin , write jobs in groovy pipline dsl, yes:
try { sh "yourscript.sh" } catch(exception e) { currentbuild.result = 'unstable' }
Comments
Post a Comment