Fixing jenkins job 0 touch
Change-Id: I905d0a563e3e6107c49901cb8e9b6f65e1165131
(cherry picked from commit b1d2db20672baf3059f65aa789cf733414db1869)
diff --git a/Jenkinsfile-rcordlite-zerotouch b/Jenkinsfile-rcordlite-zerotouch
index f0c2a3b..7efc3ae 100644
--- a/Jenkinsfile-rcordlite-zerotouch
+++ b/Jenkinsfile-rcordlite-zerotouch
@@ -88,6 +88,23 @@
}
}
}
+ stage('Install CORD Kafka') {
+ timeout(10) {
+ sh returnStdout: true, script: """
+ export KUBECONFIG=$WORKSPACE/pod-configs/kubernetes-configs/${deployment_config.kube_config}
+ helm install --name cord-kafka --set replicas=1 --set persistence.enabled=false --set zookeeper.replicaCount=1 --set zookeeper.persistence.enabled=false incubator/kafka
+ """
+ }
+ timeout(10) {
+ waitUntil {
+ kafka_instances_running = sh returnStdout: true, script: """
+ export KUBECONFIG=$WORKSPACE/pod-configs/kubernetes-configs/${deployment_config.kube_config} &&
+ kubectl get pods | grep cord-kafka | grep -i running | grep 1/1 | wc -l
+ """
+ return kafka_instances_running.toInteger() == 2
+ }
+ }
+ }
stage('Install ONOS-Voltha') {
timeout(10) {
sh returnStdout: true, script: """
@@ -158,23 +175,6 @@
}
}
}
- stage('Install CORD Kafka') {
- timeout(10) {
- sh returnStdout: true, script: """
- export KUBECONFIG=$WORKSPACE/pod-configs/kubernetes-configs/${deployment_config.kube_config}
- helm install --name cord-kafka --set replicas=1 --set persistence.enabled=false --set zookeeper.replicaCount=1 --set zookeeper.persistence.enabled=false incubator/kafka
- """
- }
- timeout(10) {
- waitUntil {
- kafka_instances_running = sh returnStdout: true, script: """
- export KUBECONFIG=$WORKSPACE/pod-configs/kubernetes-configs/${deployment_config.kube_config} &&
- kubectl get pods | grep cord-kafka | grep -i running | grep 1/1 | wc -l
- """
- return kafka_instances_running.toInteger() == 2
- }
- }
- }
stage('Install hippie-oss') {
timeout(10) {
sh returnStdout: true, script: """