fix pipeline conditions
Change-Id: I9671ba0b4f2040031687c89b84c8f6a5a852cfaf
diff --git a/mk-lab-pipeline.groovy b/mk-lab-pipeline.groovy
index d59ef52..3988074 100644
--- a/mk-lab-pipeline.groovy
+++ b/mk-lab-pipeline.groovy
@@ -52,7 +52,7 @@
git.checkoutGitRepository('template', HEAT_TEMPLATE_URL, HEAT_TEMPLATE_BRANCH, HEAT_TEMPLATE_CREDENTIALS)
}
- stage('Install OpenStack cli') {
+ stage('Install OpenStack CLI') {
openstack.setupOpenstackVirtualenv(openstackEnv, openstackVersion)
}
@@ -85,7 +85,7 @@
salt.validateFoundationInfra(saltMaster)
}
- if (INSTALL_K8S) {
+ if (INSTALL_K8S == true) {
stage("Install Kubernetes infra") {
salt.installOpenstackMcpInfra(saltMaster)
}
@@ -94,14 +94,14 @@
salt.installOpenstackMcpControl(saltMaster)
}
- if (K8S_RUN_CONFORMANCE_TESTS) {
+ if (K8S_RUN_CONFORMANCE_TESTS == true) {
stage("Run k8s conformance e2e tests") {
salt.runConformanceTests(saltMaster, K8S_API_SERVER, K8S_CONFORMANCE_IMAGE)
}
}
}
- if (INSTALL_OPENSTACK) {
+ if (INSTALL_OPENSTACK == true) {
// install Infra and control, tests, ...
stage("Install OpenStack infra") {
@@ -121,7 +121,7 @@
}
}
- if (HEAT_STACK_DELETE) {
+ if (HEAT_STACK_DELETE == true) {
stage('Trigger cleanup job') {
build job: 'deploy_heat_cleanup', parameters: [[$class: 'StringParameterValue', name: 'HEAT_STACK_NAME', value: HEAT_STACK_NAME]]
}