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

dos "exit" command not functioning correctly

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

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

              People

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

                Dates

                Created:
                Updated:
                Resolved: