Skip to content

Commit

Permalink
Merge pull request #738 from jglick/parallelErrorPost-JENKINS-73726
Browse files Browse the repository at this point in the history
[JENKINS-73726] Reproduced error in test
  • Loading branch information
jglick authored Sep 5, 2024
2 parents bb34b2e + 0b38cfa commit 2b5358d
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 1 deletion.
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'
}
}
}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-cps</artifactId>
<version>3953.v19f11da_8d2fa_</version>
<version>3961.ve48ee2c44a_b_3</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.main</groupId>
Expand Down

0 comments on commit 2b5358d

Please sign in to comment.