Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-40016

Parameterized Trigger Plug-In with "Build on same node" incompatible with Docker Plugin

      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.

          [JENKINS-40016] Parameterized Trigger Plug-In with "Build on same node" incompatible with Docker Plugin

          Gary Smith created issue -
          Gary Smith made changes -
          Environment Original: Jenkins 2.33
          Docker Plug-In 0.16.2
          Parameterized Trigger Plugin 2.32
          New: Jenkins 2.1
          Docker Plug-In 0.16.2
          Parameterized Trigger Plugin 2.32

          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.

          Nicolas De Loof added a comment - 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.
          Nicolas De Loof made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

            magnayn magnayn
            garysmith Gary Smith
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: