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

28 views
Skip to first unread message

Mallarapu Ananth

unread,
Mar 23, 2021, 10:23:29 AM3/23/21
to Jenkins Users
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 . 

Martin Schmude

unread,
Mar 23, 2021, 3:30:14 PM3/23/21
to Jenkins Users
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.

Mallarapu Ananth

unread,
Mar 24, 2021, 2:48:35 AM3/24/21
to Jenkins Users
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 . 

Reply all
Reply to author
Forward
0 new messages