fixing bug in xos-integration tests pipeline
Change-Id: I75a110a85f9f01bc365186aba190a2428071e4ed
diff --git a/jjb/pipeline/xos-integration-tests.groovy b/jjb/pipeline/xos-integration-tests.groovy
index a677e74..652b323 100644
--- a/jjb/pipeline/xos-integration-tests.groovy
+++ b/jjb/pipeline/xos-integration-tests.groovy
@@ -124,20 +124,19 @@
sh """
#!/usr/bin/env bash
set -eu -o pipefail
- CORD_KAFKA_IP=\$(kubectl exec cord-kafka-0 -- ip a | grep -oE "([0-9]{1,3}\\.){3}[0-9]{1,3}\\b" | grep 172)
+ export CORD_KAFKA_IP=\$(kubectl exec cord-kafka-0 -- ip a | grep -oE "([0-9]{1,3}\\.){3}[0-9]{1,3}\\b" | grep 172)
pushd cord/test/cord-tester/src/test/cord-api/
source setup_venv.sh
cd Tests/${params.TestDir}
${params.TestCommand} || true
popd
-
"""
}
}
}
post {
always {
- sh '''
+ sh """
kubectl get pods --all-namespaces
# copy robot logs
@@ -154,7 +153,7 @@
done
sudo minikube delete
- '''
+ """
step([$class: 'RobotPublisher',
disableArchiveOutput: false,
logFileName: 'RobotLogs/log*.html',