Skip to content

Commit

Permalink
cleanup docker container on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Testing closet committed Jul 10, 2019
1 parent 04756a0 commit 70d4fd7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ pipeline {
}
}
post {
failure {
script {
sh "docker rm ${env.DOCKER_NAME} || true"
}
}
always {
junit "test_results*.xml"
}
Expand Down

0 comments on commit 70d4fd7

Please sign in to comment.