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

Unable to manipulate build result as expected

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • build-pipeline-plugin
    • Jenkins 2.13, Pipeline 2.2.

      I am expecting that the following simple pipeline script finishes with status SUCCESS. Instead, it fails:

      print "Setting result to FAILURE"
      currentBuild.result = 'FAILURE'
      
      print "Setting result to SUCCESS"
      currentBuild.result = 'SUCCESS'

            Unassigned Unassigned
            jrkoiter Joost
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: