Enum Class BuildStatusFilter

java.lang.Object
java.lang.Enum<BuildStatusFilter>
jenkins.widgets.BuildStatusFilter
All Implemented Interfaces:
Serializable, Comparable<BuildStatusFilter>, Constable

@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public enum BuildStatusFilter extends Enum<BuildStatusFilter>
A status a build can be filtered by in the builds list's status filter panel. Each entry's Enum.name() is the value sent as the status query parameter and understood by HistoryPageFilter.setStatuses(java.util.Set).

Display name and icon are sourced from Result/BallColor rather than being redefined here, so the filter panel stays in sync with the labels and icons already used for build status elsewhere (e.g. status icon tooltips). BUILDING has no corresponding Result, since a build in progress hasn't produced one yet.

  • Enum Constant Details

  • Method Details

    • values

      public static BuildStatusFilter[] 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 BuildStatusFilter 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
    • getValue

      public String getValue()
    • getDisplayName

      public String getDisplayName()
      Resolved lazily (rather than once at enum-init time) since it depends on the current request's locale.
    • getIcon

      public String getIcon()
    • all

      @NonNull public static List<BuildStatusFilter> all()