• 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'

          [JENKINS-36598] Unable to manipulate build result as expected

          Joost added a comment -

          Joost added a comment - I guess this is as expected: https://github.com/jenkinsci/jenkins/blob/213363d387736874f1d14d83e57347f757f3ed4f/core/src/main/java/hudson/model/Run.java#L462

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

              Created:
              Updated:
              Resolved: