jenkinsci / jenkinsci/durable-task-plugin

[JENKINS-58529] Powershell Pipeline Hangs when dontKillMe feature has been activated

Open
#460 0 comments 0 reactions 0 assignees View on GitHub
component:durable-task-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
30
Forks
101
PR merge metrics
No merged PRs in 30d

Description

The powershell call from a Jenkins pipeline script do not return when the script is preventing the ProcessTreeKiller to kill all processes.

https://wiki.jenkins.io/display/JENKINS/ProcessTreeKiller

stage ('call powershell') {	

powershell (". .\\my_powershell_script.ps1")
println("jenkins never return")
}

 

# my_powershell_script.ps1 content

$ENV:BUILD_ID="dontKillMe"
$ENV:JENKINS_NODE_COOKIE="dontKillMe"

Regards, Éric.

---
Originally reported by ericlouvard, imported from: Powershell Pipeline Hangs when dontKillMe feature has been activated


  • status: Open
  • priority: Major
  • component(s): durable-task-plugin
  • label(s): dontKillMe, powershell
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-09

Raw content of original issue

The powershell call from a Jenkins pipeline script do not return when the script is preventing the ProcessTreeKiller to kill all processes.

https://wiki.jenkins.io/display/JENKINS/ProcessTreeKiller


stage ('call powershell') {	

powershell (". .\\my_powershell_script.ps1")
println("jenkins never return")
}

 



# my_powershell_script.ps1 content

$ENV:BUILD_ID="dontKillMe"
$ENV:JENKINS_NODE_COOKIE="dontKillMe"

Regards, Éric.

environment

```
Jenkins: 2.185

durable-task-plugin: 1.30

slave: Windows-Server 2016
```

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.