Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- node {
- stage("example") {
- b = build(job: "example-job", propagate: false).result
- if(b == 'FAILURE') {
- echo "First job failed"
- currentBuild.result = 'UNSTABLE' // of FAILURE
- }
- }
- stage("test") {
- build("test-job")
- }
- }
Add Comment
Please, Sign In to add comment