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

Popular posts from this blog

cookies - Yii2 Advanced - Share session between frontend and mainsite (duplicate of frontend for www) -

angular - password and confirm password field validation angular2 reactive forms -

php - Permission denied. Laravel linux server -