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:
parent
9c8632320d
commit
642f9bd3f3
1 changed files with 16 additions and 12 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue