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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • durable-task-plugin
    • None
    • 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

       

            gabloe Gabriel Loewen
            descoffery Dustin Escoffery
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: