Fix some issues related to the integration of onos-diagnostics-k8s
Change-Id: I686afd67fc96ac59c38ec03ab71158cd0109a893
diff --git a/jjb/pipeline/voltha-go-tests.groovy b/jjb/pipeline/voltha-go-tests.groovy
index 259b698..f8fac10 100644
--- a/jjb/pipeline/voltha-go-tests.groovy
+++ b/jjb/pipeline/voltha-go-tests.groovy
@@ -38,6 +38,8 @@
VOLTHA_LOG_LEVEL="DEBUG"
CONFIG_SADIS="no"
ROBOT_MISC_ARGS="${params.extraRobotArgs} -d $WORKSPACE/RobotLogs -e PowerSwitch"
+ KARAF_HOME="${params.karafHome}"
+ DIAGS_PROFILE="VOLTHA_PROFILE"
}
stages {
@@ -159,8 +161,8 @@
wget https://raw.githubusercontent.com/opennetworkinglab/onos/master/tools/package/runtime/bin/onos-diagnostics-k8s
wget https://raw.githubusercontent.com/opennetworkinglab/onos/master/tools/package/runtime/bin/onos-diagnostics-profile
chmod 755 onos-diagnostics-k8s
- pod_name=$(kubectl get pods -lapp=onos-onos-classic -o name | cut -d '/' -f2 | tr '\n' ' ')
- ./onos-diagnostics-k8s -k karaf ${pod_names}
+ pod_names=$(kubectl get pods -lapp=onos-onos-classic -o name | cut -d '/' -f2 | tr '\n' ' ')
+ ./onos-diagnostics-k8s ${pod_names}
cp /tmp/onos-diags.tar.gz $WORKSPACE/onos-diags.tar.gz
## shut down voltha but leave kind-voltha cluster