-
Notifications
You must be signed in to change notification settings - Fork 412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to skip removal of container after docker stop via the org.jenkinsci.plugins.docker.workflow.client.DockerClient.SKIP_RM_ON_STOP
property
#189
Conversation
org.jenkinsci.plugins.docker.workflow.client.DockerClient.SKIP_TM_ON_STOP
property
org.jenkinsci.plugins.docker.workflow.client.DockerClient.SKIP_TM_ON_STOP
propertyorg.jenkinsci.plugins.docker.workflow.client.DockerClient.SKIP_RM_ON_STOP
property
Any idea when this will be merged and released? |
Seems unwise to me. If you have issues at this scale, you are better off managing |
So you're telling me that if I use Jenkins in real-world large scale situations I shouldn't use high-level plugins like this one? That is quite worrying statement... |
Welcome to the open-source community. People sometimes have strong opinions there :) |
P.S: Assigned to myself to get it delivered if no blocking reviews. ETA is after Feb 10 due to the business trips and other emergency tasks |
Friendly ping on this one, any chance to get it into master and released? |
@oleg-nenashev any news on this one? |
As you may guess, COVID destroyed my plans.... quite a lot. I am also not really available in the coming month (announcement). Since @car-roll has been active recently, maybe it would be the best to transfer this pull request. Will also retrigger CI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@oleg-nenashev Could you please give us an example about how to use "org.jenkinsci.plugins.docker.workflow.client.DockerClient.SKIP_RM_ON_STOP" in the jenkins pipeline job? Thanks. |
As the author I can pitch in here, org.jenkinsci.plugins.docker.workflow.client.DockerClient.SKIP_RM_ON_STOP is not intended to be used from individual Jenkins pipeline job. Instead, it governs the behaviour for all Jenkins pipeline jobs running on the controller. I.e. if you set -Dorg.jenkinsci.plugins.docker.workflow.client.DockerClient.SKIP_RM_ON_STOP=true when you start the Java process. Then all jenkins pipeline jobs will stopp removing the container when they terminate the container. |
Added a system property which makes it possible to skip removal of containers after stop has been issued (either through container.stop() or during exit of within() step). This is useful for users (like us) which produces very large build trees in our containers, and in some situations, hit the timeout. Rather than extending the timeout we would like our builds to finish fast and then handle cleanup with separate janitor-job.