mirror of
https://github.com/arangodb/kube-arangodb.git
synced 2024-12-14 11:57:37 +00:00
Debugging groovy
This commit is contained in:
parent
082bc1618e
commit
8244fae064
1 changed files with 13 additions and 13 deletions
|
@ -53,13 +53,13 @@ def buildTestSteps(String kubeConfigRoot, String kubeconfig) {
|
||||||
timestamps {
|
timestamps {
|
||||||
withCredentials([string(credentialsId: 'ENTERPRISEIMAGE', variable: 'DEFAULTENTERPRISEIMAGE')]) {
|
withCredentials([string(credentialsId: 'ENTERPRISEIMAGE', variable: 'DEFAULTENTERPRISEIMAGE')]) {
|
||||||
withEnv([
|
withEnv([
|
||||||
"DEPLOYMENTNAMESPACE=${myParams.TESTNAMESPACE}-${env.GIT_COMMIT}",
|
"DEPLOYMENTNAMESPACE=${myParams['TESTNAMESPACE']}-${env.GIT_COMMIT}",
|
||||||
"DOCKERNAMESPACE=${myParams.DOCKERNAMESPACE}",
|
"DOCKERNAMESPACE=${myParams['DOCKERNAMESPACE']}",
|
||||||
"ENTERPRISEIMAGE=${myParams.ENTERPRISEIMAGE}",
|
"ENTERPRISEIMAGE=${myParams['ENTERPRISEIMAGE']}",
|
||||||
"IMAGETAG=jenkins-test",
|
"IMAGETAG=jenkins-test",
|
||||||
"KUBECONFIG=${kubeConfigRoot}/${kubeconfig}",
|
"KUBECONFIG=${kubeConfigRoot}/${kubeconfig}",
|
||||||
"LONG=${myParams.LONG ? 1 : 0}",
|
"LONG=${myParams['LONG'] ? 1 : 0}",
|
||||||
"TESTOPTIONS=${myParams.TESTOPTIONS}",
|
"TESTOPTIONS=${myParams['TESTOPTIONS']}",
|
||||||
]) {
|
]) {
|
||||||
sh "make run-tests"
|
sh "make run-tests"
|
||||||
}
|
}
|
||||||
|
@ -72,8 +72,8 @@ def buildCleanupSteps(String kubeConfigRoot, String kubeconfig) {
|
||||||
return {
|
return {
|
||||||
timestamps {
|
timestamps {
|
||||||
withEnv([
|
withEnv([
|
||||||
"DEPLOYMENTNAMESPACE=${myParams.TESTNAMESPACE}-${env.GIT_COMMIT}",
|
"DEPLOYMENTNAMESPACE=${myParams['TESTNAMESPACE']}-${env.GIT_COMMIT}",
|
||||||
"DOCKERNAMESPACE=${myParams.DOCKERNAMESPACE}",
|
"DOCKERNAMESPACE=${myParams['DOCKERNAMESPACE']}",
|
||||||
"KUBECONFIG=${kubeConfigRoot}/${kubeconfig}",
|
"KUBECONFIG=${kubeConfigRoot}/${kubeconfig}",
|
||||||
]) {
|
]) {
|
||||||
sh "make cleanup-tests"
|
sh "make cleanup-tests"
|
||||||
|
@ -107,11 +107,11 @@ pipeline {
|
||||||
steps {
|
steps {
|
||||||
timestamps {
|
timestamps {
|
||||||
withEnv([
|
withEnv([
|
||||||
"DEPLOYMENTNAMESPACE=${myParams.TESTNAMESPACE}-${env.GIT_COMMIT}",
|
"DEPLOYMENTNAMESPACE=${myParams['TESTNAMESPACE']}-${env.GIT_COMMIT}",
|
||||||
"DOCKERNAMESPACE=${myParams.DOCKERNAMESPACE}",
|
"DOCKERNAMESPACE=${myParams['DOCKERNAMESPACE']}",
|
||||||
"IMAGETAG=jenkins-test",
|
"IMAGETAG=jenkins-test",
|
||||||
"LONG=${myParams.LONG ? 1 : 0}",
|
"LONG=${myParams['LONG'] ? 1 : 0}",
|
||||||
"TESTOPTIONS=${myParams.TESTOPTIONS}",
|
"TESTOPTIONS=${myParams['TESTOPTIONS']}",
|
||||||
]) {
|
]) {
|
||||||
sh "make"
|
sh "make"
|
||||||
sh "make run-unit-tests"
|
sh "make run-unit-tests"
|
||||||
|
@ -123,7 +123,7 @@ pipeline {
|
||||||
stage('Test') {
|
stage('Test') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
def configs = "${myParams.KUBECONFIGS}".split(",")
|
def configs = "${myParams['KUBECONFIGS']}".split(",")
|
||||||
def testTasks = [:]
|
def testTasks = [:]
|
||||||
for (kubeconfig in configs) {
|
for (kubeconfig in configs) {
|
||||||
testTasks["${kubeconfig}"] = buildTestSteps(kubeConfigRoot, kubeconfig)
|
testTasks["${kubeconfig}"] = buildTestSteps(kubeConfigRoot, kubeconfig)
|
||||||
|
@ -137,7 +137,7 @@ pipeline {
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
script {
|
script {
|
||||||
def configs = "${myParams.KUBECONFIGS}".split(",")
|
def configs = "${myParams['KUBECONFIGS']}".split(",")
|
||||||
def cleanupTasks = [:]
|
def cleanupTasks = [:]
|
||||||
for (kubeconfig in configs) {
|
for (kubeconfig in configs) {
|
||||||
cleanupTasks["${kubeconfig}"] = buildCleanupSteps(kubeConfigRoot, kubeconfig)
|
cleanupTasks["${kubeconfig}"] = buildCleanupSteps(kubeConfigRoot, kubeconfig)
|
||||||
|
|
Loading…
Reference in a new issue