Skip to content

Commit

Permalink
Factor out prepareBuildout step. Fix alltests call.
Browse files Browse the repository at this point in the history
  • Loading branch information
tisto committed Feb 15, 2015
1 parent d5a840f commit 1c145d6
Showing 1 changed file with 20 additions and 13 deletions.
33 changes: 20 additions & 13 deletions flow.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,35 @@ node {

stage 'Test'
parallel(
alltest: {
alltests: {
node {
sh "rm -rf *"
unarchive mapping: ['buildout.tar': '.']
sh "tar -x -f buildout.tar"
sh "bin/jenkins-alltests"
step([$class: 'JUnitResultArchiver', testResults: 'parts/jenkins-test/testreports/*.xml'])
prepareBuildout()
sh "bin/jenkins-alltests --group=Plone"
sh "find parts"
// step([$class: 'JUnitResultArchiver', testResults: 'parts/jenkins-test/testreports/*.xml'])
}
},
alltestat: {
alltestsat: {
node {
sh "rm -rf *"
unarchive mapping: ['buildout.tar': '.']
sh "tar -x -f buildout.tar"
sh "bin/jenkins-alltests-at"
step([$class: 'JUnitResultArchiver', testResults: 'parts/jenkins-test/testreports/*.xml'])
prepareBuildout()
sh "bin/jenkins-alltests-at --group=AT_plone_app_testing"
sh "find parts"
// step([$class: 'JUnitResultArchiver', testResults: 'parts/jenkins-test/testreports/*.xml'])
}
}
)

stage 'Notification'
node {
stage 'Notification'
step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: 'tisto@plone.org', sendToIndividuals: true])
}


/**
* Prepare buildout by cleaning up the workspace, and fetching buildout.
*/
def prepareBuildout() {
sh "rm -rf *"
unarchive mapping: ['buildout.tar': '.']
sh "tar -x -f buildout.tar"
}

0 comments on commit 1c145d6

Please sign in to comment.