I have a pipeline starting with:
pipeline {
agent {
docker {
image 'ubuntu'
}
}
At the end of the build, success or failure, the pipeline ends with:
$ docker stop --time=1 922fc93c1ff65758270cd2ac9dbdc30549ea8acb000ce5982dfa1fc4a9ed79a0
$ docker rm -f 922fc93c1ff65758270cd2ac9dbdc30549ea8acb000ce5982dfa1fc4a9ed79a0
Is there a way to disable the rm -f step.
This is for debugging purpose. At the moment, I put a sleep somewhere which is very inconvenient.