Skip to content

Commit

Permalink
Wrapping in script
Browse files Browse the repository at this point in the history
  • Loading branch information
ewoutp committed Mar 8, 2018
1 parent 9c86323 commit 642f9bd
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions Jenkinsfile.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -80,25 +80,29 @@ pipeline {
}
}
stage('Test') {
//steps {
def configs = "{params.KUBECONFIGS}".split(",")
def testTasks = [:]
for (kubeconfig in configs) {
testTasks["${kubeconfig}"] = buildTestSteps(kubeconfig)
steps {
script {
def configs = "{params.KUBECONFIGS}".split(",")
def testTasks = [:]
for (kubeconfig in configs) {
testTasks["${kubeconfig}"] = buildTestSteps(kubeconfig)
}
parallel testTasks
}
parallel testTasks
//}
}
}
}

post {
always {
def configs = "{params.KUBECONFIGS}".split(",")
def cleanupTasks = [:]
for (kubeconfig in configs) {
cleanupTasks["${kubeconfig}"] = buildCleanupSteps(kubeconfig)
script {
def configs = "{params.KUBECONFIGS}".split(",")
def cleanupTasks = [:]
for (kubeconfig in configs) {
cleanupTasks["${kubeconfig}"] = buildCleanupSteps(kubeconfig)
}
parallel cleanupTasks
}
parallel cleanupTasks
}
failure {
notifySlack('FAILURE')
Expand Down

0 comments on commit 642f9bd

Please sign in to comment.