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

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

XMLWordPrintable

    • 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
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: