[CORD-3121] Teardown minikube after helm-api-test, install xos-client in api test
Change-Id: I386c999d0a001aaeed221e0d0663fe6a370a75b7
diff --git a/jjb/pipeline/all-xos-api-test-helm.groovy b/jjb/pipeline/all-xos-api-test-helm.groovy
index 4437414..9dcb6ce 100644
--- a/jjb/pipeline/all-xos-api-test-helm.groovy
+++ b/jjb/pipeline/all-xos-api-test-helm.groovy
@@ -190,8 +190,13 @@
post {
always {
sh '''
- kubectl get pods --all-namespaces
- helm list
+ kubectl get pods --all-namespaces
+ helm list
+ helm delete --purge xos-core
+ if [[ "$GERRIT_PROJECT" =~ ^(rcord|vrouter|vsg|vtn|vtr|fabric|openstack|chameleon|exampleservice|simpleexampleservice|onos-service|olt-service|kubernetes-service)\$ ]]; then
+ helm delete --purge rcord-lite
+ fi
+ minikube delete
'''
step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: "suchitra@opennetworking.org, you@opennetworking.org, kailash@opennetworking.org", sendToIndividuals: false])
}
diff --git a/jjb/pipeline/helm-api-test.groovy b/jjb/pipeline/helm-api-test.groovy
index 4540502..7271d7a 100644
--- a/jjb/pipeline/helm-api-test.groovy
+++ b/jjb/pipeline/helm-api-test.groovy
@@ -130,6 +130,7 @@
kubectl logs xos-core-api-test
kubectl delete pod xos-core-api-test
helm delete --purge xos-core
+ minikube delete
'''
deleteDir()
}