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

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -