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

Add way to easily test currentBuild result is better/worse than some value (isBetterOrEqualTo)

    Details

    • Similar Issues:

      Description

      Currently currentBuild.result returns a string. This makes testing whether a result is better/worse than some status. This functionality is present in hudson.model.Result as isBetterOrEqualTo and isWorseOrEqualTo

      Suggest one of two solutions:
      1. Wiring this through as currentBuild.resultIsBetterOrEqualTo(String) and currentBuild.resultIsWorseOrEqualTo(String).
      2. Add a currentBuild.resultValue property that returns the raw hudson.model.Result value from which someone could run isBetterOrEqualTo

        Attachments

          Issue Links

            Activity

            bitwiseman Liam Newman created issue -
            abayer Andrew Bayer made changes -
            Field Original Value New Value
            Assignee Andrew Bayer [ abayer ]
            abayer Andrew Bayer made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            abayer Andrew Bayer made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            abayer Andrew Bayer made changes -
            Remote Link This issue links to "PR #31 (Web Link)" [ 15819 ]
            abayer Andrew Bayer made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            bitwiseman Liam Newman made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            bitwiseman Liam Newman made changes -
            Link This issue relates to WEBSITE-364 [ WEBSITE-364 ]

              People

              • Assignee:
                abayer Andrew Bayer
                Reporter:
                bitwiseman Liam Newman
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: