Package hudson.plugins.copyartifact
Enum TriggeredBuildSelector.UpstreamFilterStrategy
- java.lang.Object
-
- java.lang.Enum<TriggeredBuildSelector.UpstreamFilterStrategy>
-
- hudson.plugins.copyartifact.TriggeredBuildSelector.UpstreamFilterStrategy
-
- All Implemented Interfaces:
Serializable
,Comparable<TriggeredBuildSelector.UpstreamFilterStrategy>
- Enclosing class:
- TriggeredBuildSelector
public static enum TriggeredBuildSelector.UpstreamFilterStrategy extends Enum<TriggeredBuildSelector.UpstreamFilterStrategy>
Which build should be used if triggered by multiple upstream builds. Specified in buildstep configurations and the global configuration.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description UseGlobalSetting
Use global configuration.UseNewest
Use the newest build.UseOldest
Use the oldest build.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDisplayName()
boolean
isForGlobalSetting()
static TriggeredBuildSelector.UpstreamFilterStrategy
valueOf(String name)
Returns the enum constant of this type with the specified name.static TriggeredBuildSelector.UpstreamFilterStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UseGlobalSetting
public static final TriggeredBuildSelector.UpstreamFilterStrategy UseGlobalSetting
Use global configuration. The default value for buildstep configurations. Should not be specified in the global configuration.
-
UseOldest
public static final TriggeredBuildSelector.UpstreamFilterStrategy UseOldest
Use the oldest build. The default value for the global configuration.
-
UseNewest
public static final TriggeredBuildSelector.UpstreamFilterStrategy UseNewest
Use the newest build.
-
-
Method Detail
-
values
public static TriggeredBuildSelector.UpstreamFilterStrategy[] 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 (TriggeredBuildSelector.UpstreamFilterStrategy c : TriggeredBuildSelector.UpstreamFilterStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TriggeredBuildSelector.UpstreamFilterStrategy 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
-
getDisplayName
public String getDisplayName()
-
isForGlobalSetting
public boolean isForGlobalSetting()
-
-