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

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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

            Assignee:
            Andrew Bayer
            Reporter:
            Liam Newman
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: