Package hudson.model

Enum Class ResultTrend

java.lang.Object
java.lang.Enum<ResultTrend>
hudson.model.ResultTrend
All Implemented Interfaces:
Serializable, Comparable<ResultTrend>, Constable

public enum ResultTrend extends Enum<ResultTrend>
Describes an Result trend by taking the comparing the result of the current and the previous build.
Since:
1.416
Author:
kutzi
  • Enum Constant Details

  • Method Details

    • values

      public static ResultTrend[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ResultTrend valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getDescription

      public String getDescription()
      Returns a short human-readable description of the result.
    • getID

      public String getID()
      Gets all upper case ID like token of the build status.
    • getResultTrend

      public static ResultTrend getResultTrend(AbstractBuild<?,?> build)
      Returns the result trend of a build.
      Parameters:
      build - the build
      Returns:
      the result trend
    • getResultTrend

      public static ResultTrend getResultTrend(Run<?,?> run)
      Returns the result trend of a run.
      Parameters:
      run - the run
      Returns:
      the result trend
      Since:
      1.441