Pipeline 'bat' does not terminate immediately

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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)

        1. jenkins-capture-error.groovy
          0.5 kB
          Nick Sonneveld
        2. jenkins-capture-error-error.log
          1 kB
          Nick Sonneveld
        3. jenkins-capture-error-failed-to-terminate-at-all.log
          1 kB
          Nick Sonneveld
        4. jenkins-capture-error-succes.log
          1 kB
          Nick Sonneveld

            Assignee:
            Jesse Glick
            Reporter:
            Nick Sonneveld
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: