1
0
Fork 0
mirror of https://github.com/arangodb/kube-arangodb.git synced 2024-12-14 11:57:37 +00:00

Cleanup kubernetes after tests

This commit is contained in:
Ewout Prangsma 2018-02-27 11:31:27 +01:00
parent 2762759935
commit 6017f72178
No known key found for this signature in database
GPG key ID: 4DBAD380D93D0698
2 changed files with 13 additions and 0 deletions

View file

@ -63,6 +63,16 @@ pipeline {
}
post {
always {
timestamps {
withEnv([
"KUBECONFIG=${params.KUBECONFIG}",
"TESTNAMESPACE=${params.TESTNAMESPACE}-${env.GIT_COMMIT}",
]) {
sh "make cleanup-tests"
}
}
}
failure {
notifySlack('FAILURE')
}

View file

@ -182,6 +182,9 @@ endif
-test.v
kubectl delete namespace $(TESTNAMESPACE) --ignore-not-found --now
cleanup-tests:
kubectl delete namespace $(TESTNAMESPACE) --ignore-not-found --now
# Release building
docker-push: docker