durable-task-plugin 1.23 powershell step does not return exit code other than 0 or 1

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • Component/s: durable-task-plugin
    • None
    • Environment:
      Jenkins ver. 2.121.2
      durable-task-plugin 1.23
    • durable-task 1.30

       

      After upgrading to durable-task-plugin 1.23, the powershell step does not return the correct non-zero exit code. In version 1.22 the code was correct.

      powershell 'exit 123'

      ERROR: script returned exit code 1

       

       

      def status = powershell(returnStatus:true, script:'exit 123')
      echo "$status" 

      [Pipeline] echo
      1

       

            Assignee:
            Gabriel Loewen
            Reporter:
            Dustin Escoffery
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: