public enum GlobalOption extends Enum<GlobalOption> implements CiOption
| Enum Constant and Description |
|---|
FAST |
INFRASTRUCTURE
Auto detect infrastructure using for this build.
example of gitlab-ci's CI_PROJECT_URL: "https://example.com/gitlab-org/gitlab-ce" ossrh, private or customized infrastructure name. |
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
getDefaultValue() |
static Optional<String> |
getInfrastructureSpecificValue(CiOption ciOption,
CiOptionContext context) |
String |
getPropertyName() |
static Optional<String> |
setInfrastructureSpecificValue(CiOption ciOption,
BiFunction<CiOptionContext,Properties,Optional<String>> superSetProperties,
CiOptionContext context,
Properties properties) |
static GlobalOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GlobalOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfcalculateValue, findInProperties, getEnvVariableName, getSystemPropertyName, getValue, name, setPropertiespublic static final GlobalOption FAST
public static final GlobalOption INFRASTRUCTURE
public static GlobalOption[] values()
for (GlobalOption c : GlobalOption.values()) System.out.println(c);
public static GlobalOption valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static Optional<String> getInfrastructureSpecificValue(CiOption ciOption, CiOptionContext context)
public static Optional<String> setInfrastructureSpecificValue(CiOption ciOption, BiFunction<CiOptionContext,Properties,Optional<String>> superSetProperties, CiOptionContext context, Properties properties)
public Optional<String> getDefaultValue()
getDefaultValue in interface CiOptionpublic String getPropertyName()
getPropertyName in interface CiOptionCopyright © 2019. All rights reserved.