keep the docker container alive even on job failure and re use it for replay

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

keep the docker container alive even on job failure and re use it for replay

Mallarapu Ananth
Hi all , 

I am looking for a feature where i need to docker container to be alive even the job failed . to give the context , i am trying to develop do build which take long time and whenever it build fails at some point i need to do all the steps again . to avoid this i need to docker container to be alive even when job get failed . 

in addition to this i should be able to use the same docker container to replay the same job again form a later stage . 

i looked at the issues page for a while but couldn't find any similar ones . if anyone has faced the issue let me know your thought on how can this problem be solved . 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/08950b4b-1acd-4bbf-bf1c-7537abe4b519n%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: keep the docker container alive even on job failure and re use it for replay

Martin Schmude
Don't start the container by the long-running job. Setup a second job that starts the container, so that the first job may fail without affecting the container.

[hidden email] schrieb am Dienstag, 23. März 2021 um 15:23:29 UTC+1:
Hi all , 

I am looking for a feature where i need to docker container to be alive even the job failed . to give the context , i am trying to develop do build which take long time and whenever it build fails at some point i need to do all the steps again . to avoid this i need to docker container to be alive even when job get failed . 

in addition to this i should be able to use the same docker container to replay the same job again form a later stage . 

i looked at the issues page for a while but couldn't find any similar ones . if anyone has faced the issue let me know your thought on how can this problem be solved . 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/2b16fe88-d9ac-48bc-8a82-86f9fb947b5dn%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: keep the docker container alive even on job failure and re use it for replay

Mallarapu Ananth
hi martin , 
 i am using docker cloud plugin . how can i specify to the long running job to use the exact docker container started by the second job . 

On Wednesday, March 24, 2021 at 1:00:14 AM UTC+5:30 Martin Schmude wrote:
Don't start the container by the long-running job. Setup a second job that starts the container, so that the first job may fail without affecting the container.

[hidden email] schrieb am Dienstag, 23. März 2021 um 15:23:29 UTC+1:
Hi all , 

I am looking for a feature where i need to docker container to be alive even the job failed . to give the context , i am trying to develop do build which take long time and whenever it build fails at some point i need to do all the steps again . to avoid this i need to docker container to be alive even when job get failed . 

in addition to this i should be able to use the same docker container to replay the same job again form a later stage . 

i looked at the issues page for a while but couldn't find any similar ones . if anyone has faced the issue let me know your thought on how can this problem be solved . 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/68eb11d9-3494-4d47-bfa6-01810acff09dn%40googlegroups.com.