Skip to content

Commit

Permalink
[JENKINS-73726] Reproduced error in test
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed Sep 5, 2024
1 parent bb34b2e commit 6ae9166
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -444,4 +444,13 @@ public void parallelInput() throws Exception {
j.assertLogContains("Two Continues", b);
}

@Issue("JENKINS-73726")
@Test
public void parallelErrorPost() throws Exception {
expect(Result.FAILURE, "parallel/parallelErrorPost")
.logContains("the final failure block")
.hasFailureCase()
.go();
}

}
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'
}
}
}

0 comments on commit 6ae9166

Please sign in to comment.