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

Unable to manipulate build result as expected

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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'

        Attachments

          Activity

          Show
          jrkoiter 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

            People

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

              Dates

              Created:
              Updated:
              Resolved: