Skip to content
Permalink
Browse files

[JENKINS-37323] Implement test cases with new syntax

  • Loading branch information...
scherler committed Sep 5, 2016
1 parent b587c8b commit d1ebf33b61197b57a7db256061ef179a7b8786e1
Showing with 18 additions and 15 deletions.
  1. +1 −1 src/test/js/log-karaoke/stages.js
  2. +17 −14 src/test/resources/test_scripts/stages-with-wait.groovy
@@ -31,7 +31,7 @@ module.exports = {
blueRunDetailPage.waitForElementPresent('svg circle.success');
// FIXME should be taken from somewhere dynamically
// Stop karaoke and go back in graph and see the result
const nodeDetail = blueRunDetailPage.forNode('5');
const nodeDetail = blueRunDetailPage.forNode('6');
// validate that karaoke has stopped but overall process still runs
nodeDetail.waitForElementVisible('g.progress-spinner.running');
// Validate the result of the node
@@ -1,18 +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;'
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'
}, 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 comments on commit d1ebf33

Please sign in to comment.
You can’t perform that action at this time.