Improving cleanup stage of voltha-scale-measurements pipeline
Change-Id: I1321b2bd74560bed200e878abff172062544ed17
diff --git a/jjb/pipeline/voltha-scale-measurements.groovy b/jjb/pipeline/voltha-scale-measurements.groovy
index 0c59b53..082703c 100644
--- a/jjb/pipeline/voltha-scale-measurements.groovy
+++ b/jjb/pipeline/voltha-scale-measurements.groovy
@@ -32,7 +32,11 @@
stage('cleanup') {
steps {
sh '''
- helm del --purge onos voltha openolt openonu bbsim radius
+ for hchart in \$(helm list -q | grep -E -v 'docker-registry|cord-kafka|etcd-operator');
+ do
+ echo "Purging chart: \${hchart}"
+ helm delete --purge "\${hchart}"
+ done
bash /home/cord/voltha-scale/wait_for_pods.sh
bash /home/cord/voltha-scale/stop_port_forward.sh
'''
@@ -189,4 +193,4 @@
'''
}
}
-}
\ No newline at end of file
+}