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

ProcessTreeKiller broken in pipeline jobs

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      After one of the recent updates to pipeline plug-ins the process tree killer always kills all processes even if the BUILD_ID (as described in https://wiki.jenkins.io/display/JENKINS/ProcessTreeKiller) is changed. This is a serious regression because some of our build jobs stopped working.

      The following pipeline script can be used to reproduce the problem:

      node('master') {
        sh '''BUILD_ID="dont-kill-me bla/blub" sleep 60 &'''
      }
      
      

      The sleep process is killed immediately when the job finishes. The problem only occurs in Pipeline jobs, freestyle jobs still work as expected, i.e. the sleep process continues running for 60 seconds.

        Attachments

          Issue Links

            Activity

            sithmein Thorsten Meinl created issue -
            abayer Andrew Bayer made changes -
            Field Original Value New Value
            Component/s workflow-durable-task-step-plugin [ 21715 ]
            Component/s pipeline [ 21692 ]
            svanoort Sam Van Oort made changes -
            Resolution Not A Defect [ 7 ]
            Status Open [ 1 ] Closed [ 6 ]
            gfriedrich Georg Friedrich made changes -
            Assignee Oleg Nenashev [ oleg_nenashev ]
            Resolution Not A Defect [ 7 ]
            Status Closed [ 6 ] Reopened [ 4 ]
            oleg_nenashev Oleg Nenashev made changes -
            Assignee Oleg Nenashev [ oleg_nenashev ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-28182 [ JENKINS-28182 ]

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              sithmein Thorsten Meinl
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated: