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:
parent
2762759935
commit
6017f72178
2 changed files with 13 additions and 0 deletions
|
@ -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')
|
||||
}
|
||||
|
|
3
Makefile
3
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue