jenkinsci / jenkinsci/workflow-durable-task-step-plugin

[JENKINS-46089] ProcessTreeKiller broken in pipeline jobs

Open
#537 7 comments 0 reactions 0 assignees View on GitHub
component:workflow-durable-task-step-plugin imported-jira-issue priority:critical resolution:unresolved
Dominant language
Java
Stars
46
Forks
110
PR merge metrics
No merged PRs in 30d

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.

---
Originally reported by sithmein, imported from: ProcessTreeKiller broken in pipeline jobs


  • status: Reopened
  • priority: Critical
  • component(s): workflow-durable-task-step-plugin
  • resolution: Unresolved
  • votes: 1
  • watchers: 9
  • imported: 20251212-090250

Raw content of original issue

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.

environment

```
Linux

Jenkins 2.60.2

The latest Pipeline plug-ins as of 2017-07-09
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.