1
0
Fork 0
mirror of https://github.com/arangodb/kube-arangodb.git synced 2024-12-14 11:57:37 +00:00

Wrapping in script

This commit is contained in:
Ewout Prangsma 2018-03-08 13:11:43 +01:00
parent 9c8632320d
commit 642f9bd3f3
No known key found for this signature in database
GPG key ID: 4DBAD380D93D0698

View file

@ -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')