-
Bug
-
Resolution: Unresolved
-
Minor
When I'm using the inside method to run my unit test inside my docker and when the test is failed the container will be exit with error and will be removed, but the docker plugin will try to stop & rm container which is not exist any more.
Reproduction steps
docker.image(img_name).inside(-u root:root --entrypoint=){
sh "exit 1"
}
Results
Expected result:
The docker stop and rm should exit with 0 by checking if container exist, if yes kill it, if not skip
Actual result:
docker stop and rm exit with exit error 1