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

Pipeline 'bat' does not terminate immediately

      When a pipeline job is terminated while executing a batch script, it will sometimes continue running the batch file after terminating the batch file's child process. This means you cannot reliably check if the process was terminated by Jenkins or if it exited normally. See attached script and log.

      To test, run the attached pipeline script and terminate while in the middle of pinging. Most of the time it will continue to run the batch file after jenkins kills ping. I would expect the batch file to also stop.

      I've also attached a log of where ping terminated but the job hung and had to be force killed. (but probably related to the other bat issues)

          [JENKINS-34489] Pipeline 'bat' does not terminate immediately

          Nick Sonneveld created issue -
          Jesse Glick made changes -
          Component/s New: durable-task-plugin [ 18622 ]
          Component/s Original: workflow-plugin [ 18820 ]
          Labels Original: pipeline workflow New: windows workflow
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 170615 ] New: JNJira + In-Review [ 183976 ]
          Andrew Bayer made changes -
          Labels Original: windows workflow New: pipeline windows workflow
          Andrew Bayer made changes -
          Labels Original: pipeline windows workflow New: pipeline windows
          Vivek Pandey made changes -
          Labels Original: pipeline windows New: pipeline triaged-2018-11 windows

            jglick Jesse Glick
            sonneveldsmartward Nick Sonneveld
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: