Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[FIX JENKINS-38017 JENKINS-37323] Implement test cases with new syntax (
#30) * [JENKINS-37323] Implement test cases with new syntax * [JENKINS-37323] adding all known pipeline syntax as test case * [JENKINS-37323] fix merge problem and make sure we returning always self and not coditional
- Loading branch information
Showing
with
128 additions
and 27 deletions.
- +6 −2 src/main/js/page_objects/blueocean/bluePipelineActivity.js
- +5 −5 src/main/js/page_objects/blueocean/bluePipelineRunDetail.js
- +80 −20 src/test/js/log-karaoke/stages.js
- +21 −0 src/test/resources/test_scripts/stages-with-wait-block-syntax.groovy
- +16 −0 src/test/resources/test_scripts/stages-with-wait-pipelineModel-syntax.groovy
@@ -0,0 +1,21 @@ | ||
node { | ||
stage ('Stage 1'){ | ||
sh 'sleep 3; echo `date` Stage 1;' | ||
sh 'sleep 3; echo `date` Stage 1;' | ||
} | ||
stage ('Stage 2'){ | ||
parallel firstBranch: { | ||
sh 'echo `date` Stage 2 - first;sleep 3; echo `date` Stage 2 - first;sleep 3; echo `date` Stage 2 - first;' | ||
|
||
}, secondBranch: { | ||
sh 'echo `date` Stage 2 - second;sleep 3; echo `date` Stage 2 - second;sleep 3; echo `date` Stage 2 - second;' | ||
}, | ||
failFast: true | ||
} | ||
stage ('fin'){ | ||
sh 'echo `date` fin;sleep 3; echo `date` fin;' | ||
sh 'echo yeah > foo.txt' | ||
archiveArtifacts 'foo.txt' | ||
} | ||
stage 'NoSteps' | ||
} |
@@ -0,0 +1,16 @@ | ||
pipeline { | ||
agent label:"" | ||
stages { | ||
stage ('Stage 1'){ | ||
sh 'sleep 3; echo `date` Stage 1;' | ||
sh 'sleep 3; echo `date` Stage 1;' | ||
} | ||
|
||
stage ('fin'){ | ||
sh 'echo `date` fin;sleep 3; echo `date` fin;' | ||
sh 'echo yeah > foo.txt' | ||
archiveArtifacts 'foo.txt' | ||
} | ||
} | ||
|
||
} |