Package com.gitee.jenkins.trigger.filter
Enum BuildInstructionFilterType
- java.lang.Object
-
- java.lang.Enum<BuildInstructionFilterType>
-
- com.gitee.jenkins.trigger.filter.BuildInstructionFilterType
-
- All Implemented Interfaces:
BuildInstructionFilter
,Serializable
,Comparable<BuildInstructionFilterType>
public enum BuildInstructionFilterType extends Enum<BuildInstructionFilterType> implements BuildInstructionFilter
- Author:
- zhanggx
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBody()
static BuildInstructionFilterType
valueOf(String name)
Returns the enum constant of this type with the specified name.static BuildInstructionFilterType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface com.gitee.jenkins.trigger.filter.BuildInstructionFilter
isBuildAllow
-
-
-
-
Enum Constant Detail
-
NONE
public static final BuildInstructionFilterType NONE
无操作
-
CI_SKIP
public static final BuildInstructionFilterType CI_SKIP
包含 [ci-skip] 时跳过构建
-
CI_BUILD
public static final BuildInstructionFilterType CI_BUILD
包含 [ci-build] 时触发构建
-
-
Method Detail
-
values
public static BuildInstructionFilterType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BuildInstructionFilterType c : BuildInstructionFilterType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BuildInstructionFilterType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getBody
public String getBody()
-
-