Skip to content

Commit

Permalink
Add test to validate Issues 238
Browse files Browse the repository at this point in the history
  • Loading branch information
Willem Borgesius authored and Willem Borgesius committed Sep 30, 2020
1 parent 039cb58 commit f493989
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,12 @@ class TestDeclarativePipeline extends DeclarativePipelineTest {
assertJobStatusSuccess()
}

@Test void should_parallel_nested_stages() throws Exception {
runScript('Parallel_NestedStages_Jenkinsfile')
printCallStack()
assertJobStatusSuccess()
}

@Test void should_sub_stages() throws Exception {
runScript('ComplexStages_Jenkinsfile')
printCallStack()
Expand Down
17 changes: 17 additions & 0 deletions src/test/jenkins/jenkinsfiles/Parallel_NestedStages_Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
pipeline {
stages {
stage('Parallel Stage') {
parallel {
stage('Branch A') {
stages {
stage('Nested 1') {
steps {
echo "In stage Nested 1 within Branch A"
}
}
}
}
}
}
}
}

0 comments on commit f493989

Please sign in to comment.