-
Bug
-
Resolution: Not A Defect
-
Major
-
Jenkins 2.1
Docker Plug-In 0.16.2
Parameterized Trigger Plugin 2.32
The Jenkins Docker slave is prematurely stopped.
A Docker slave is created for my initial task, on the slave host machine "docker ps" shows the new container instance running.
My initial job finishes, it has a post-build "Parameterized Trigger Plugin" step to kick off a second Jenkins task which specifies "Build on same node". However, the Docker container has been stopped by this point so the second tasks hangs,waiting for a slave that no longer exists.
This is by design. If you want to run subsequent tasks on the same node, just group them all inside a single job or maybe switch to a Pipeline job for more flexibility.