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

2 views
Skip to first unread message

eric@louvard.de (JIRA)

unread,
Jul 17, 2019, 9:43:02 AM7/17/19
to jenkinsc...@googlegroups.com
Éric Louvard created an issue
 
Jenkins / Bug JENKINS-58529
Powershell Pipeline Hangs when dontKillMe feature has been activated
Issue Type: Bug Bug
Assignee: Unassigned
Components: durable-task-plugin
Created: 2019-07-17 13:42
Environment: Jenkins: 2.185
durable-task-plugin: 1.30
slave: Windows-Server 2016
Labels: powershell dontKillMe
Priority: Major Major
Reporter: Éric Louvard

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.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages