-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #738 from jglick/parallelErrorPost-JENKINS-73726
[JENKINS-73726] Reproduced error in test
- Loading branch information
Showing
3 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
pipeline-model-definition/src/test/resources/parallel/parallelErrorPost.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
pipeline { | ||
options { | ||
parallelsAlwaysFailFast() | ||
skipDefaultCheckout() | ||
} | ||
agent none | ||
stages { | ||
stage('fails') { | ||
steps { | ||
error 'some problem' | ||
} | ||
} | ||
stage('parallels') { | ||
parallel { | ||
stage('branch-1') { | ||
steps { | ||
echo 'branch 1' | ||
} | ||
} | ||
stage('branch-2') { | ||
steps { | ||
echo 'branch 2' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
post { | ||
failure { | ||
echo 'the final failure block' | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters