if you attempt to run a dos batch file that has an "exit" command within it then the task does not notice that the interpreter has terminated.

      e.g. in workflow create a CPS with the following

      node {
            bat '''echo hello
      exit 1'''
            echo 'should not be seen'
      }
      

      This results in a workflow that will run forever.

          [JENKINS-27419] dos "exit" command not functioning correctly

          James Nord created issue -
          Jesse Glick made changes -
          Component/s Original: workflow-plugin [ 18820 ]
          Labels New: workflow
          Jesse Glick made changes -
          Assignee Original: Jesse Glick [ jglick ] New: James Nord [ teilo ]
          James Nord made changes -
          Assignee Original: James Nord [ teilo ] New: Jesse Glick [ jglick ]
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-28759 [ JENKINS-28759 ]
          Jesse Glick made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Jesse Glick made changes -
          Labels Original: workflow New: windows workflow
          Jesse Glick made changes -
          Remote Link New: This issue links to "PR 12 (Web Link)" [ 13571 ]
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          Jesse Glick made changes -
          Link New: This issue depends on JENKINS-32000 [ JENKINS-32000 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 161624 ] New: JNJira + In-Review [ 196822 ]

            jglick Jesse Glick
            teilo James Nord
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: