Skip to content

Commit 70d4fd7

Browse files
author
Testing closet
committed
cleanup docker container on failure
1 parent 04756a0 commit 70d4fd7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Jenkinsfile

+5
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ pipeline {
6161
}
6262
}
6363
post {
64+
failure {
65+
script {
66+
sh "docker rm ${env.DOCKER_NAME} || true"
67+
}
68+
}
6469
always {
6570
junit "test_results*.xml"
6671
}

0 commit comments

Comments
 (0)