cleanup docker container on failure

This commit is contained in:
Testing closet 2019-07-10 10:19:44 -07:00
parent 04756a037f
commit 70d4fd7f64
1 changed files with 5 additions and 0 deletions

5
Jenkinsfile vendored
View File

@ -61,6 +61,11 @@ pipeline {
}
}
post {
failure {
script {
sh "docker rm ${env.DOCKER_NAME} || true"
}
}
always {
junit "test_results*.xml"
}