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

Windows bat steps never fail

XMLWordPrintable

      bat steps in Jenkins never fail:

       


      pipeline
      {
      agent any

      stages
      {
      stage('Build')
      {
      steps

      { bat returnStatus: true, script: ''' EXIT 1 ''' }

      }
      }
      }


       

      (Formatting above is scrambled by Jira)

       

      ... results in:


      [Jenkins Test-Pipeline] Running batch script

      C:\Program Files (x86)\Jenkins\workspace\Jenkins Test-Pipeline>EXIT 1
      [Pipeline] }
      [Pipeline] // stage
      [Pipeline] }
      [Pipeline] // node
      [Pipeline] End of Pipeline
      Finished: SUCCESS

            Unassigned Unassigned
            settrend A. D.
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: