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

Powershell Pipeline Hangs when dontKillMe feature has been activated

    Details

    • Similar Issues:

      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.

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              ericlouvard Éric Louvard
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: