Skip to content

Commit

Permalink
Run jenkins-alltests and jenkins-alltests-at in parallel.
Browse files Browse the repository at this point in the history
  • Loading branch information
tisto committed Feb 15, 2015
1 parent f4ba0e3 commit d5a840f
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions flow.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,29 @@ stage 'Build'
node {
sh "rm -rf *"
git branch: '5.0', changelog: true, poll: true, url: 'https://github.com/plone/buildout.coredev.git'
sh "python2.7 bootstrap.py"
sh "python2.7 bootstrap.py -c jenkins.cfg"
sh "bin/buildout -c jenkins.cfg"
sh "tar -c -f buildout.tar bin parts src"
archive 'buildout.tar'
}

stage 'Test'
parallel(
test1: {
alltest: {
node {
sh "rm -rf *"
unarchive mapping: ['buildout.tar': '.']
sh "tar -x -f buildout.tar"
sh "ls -al"
sh "bin/jenkins-test -s plone.app.discussion"
sh "bin/jenkins-alltests"
step([$class: 'JUnitResultArchiver', testResults: 'parts/jenkins-test/testreports/*.xml'])
}
},
test2: {
alltestat: {
node {
sh "rm -rf *"
unarchive mapping: ['buildout.tar': '.']
sh "tar -x -f buildout.tar"
sh "ls -al"
sh "bin/jenkins-test -s plone.app.dexterity"
sh "bin/jenkins-alltests-at"
step([$class: 'JUnitResultArchiver', testResults: 'parts/jenkins-test/testreports/*.xml'])
}
}
Expand Down

0 comments on commit d5a840f

Please sign in to comment.