Package jetbrains.buildServer.vcs
Enum RelationType
- java.lang.Object
-
- java.lang.Enum<RelationType>
-
- jetbrains.buildServer.vcs.RelationType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RelationType>
public enum RelationType extends java.lang.Enum<RelationType>
A type of relation the change has to some other entity, e.g. to build configuration.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description OVERRIDDEN_ROOT
Change comes from overridden VCS rootREGULAR
A regular change detected in build configurationSETTINGS_AFFECT_BUILDS
VCS root is used to store project' settings.SETTINGS_DO_NOT_AFFECT_BUILDS
VCS root is used to store project settings, project settings are applied to the build configuration but did not affect build settings there.SETTINGS_NOT_APPLIED
VCS root is used to store project settings, but project settings associated with a change are not applied to the build configuration yet and it is not clear whether they affect it or not.SUBREPO
Change from subrepo found in VCS root attached to build configuration
-
Field Summary
Fields Modifier and Type Field Description static java.util.Set<RelationType>
ALL_EXCEPT_SETTINGS
Contains all relation types except for project settings relationsstatic java.util.Set<RelationType>
ALL_RELATIONS
Contains all relation typesstatic java.util.Set<RelationType>
ALL_SETTINGS
static java.util.Set<RelationType>
ALL_WITH_SETTINGS_AFFECTING_BUILDS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RelationType
create(java.lang.Integer id)
java.lang.Integer
id()
static RelationType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static RelationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REGULAR
public static final RelationType REGULAR
A regular change detected in build configuration
-
OVERRIDDEN_ROOT
public static final RelationType OVERRIDDEN_ROOT
Change comes from overridden VCS root
-
SUBREPO
public static final RelationType SUBREPO
Change from subrepo found in VCS root attached to build configuration
-
SETTINGS_AFFECT_BUILDS
public static final RelationType SETTINGS_AFFECT_BUILDS
VCS root is used to store project' settings. When settings VCS root is attached to a buildType and commit is matched by checkout rules from buildType, thenREGULAR
should be used. If VCS root is not attached to build type then this relation should be used when we're sure the commit affected build configuration settings.
-
SETTINGS_NOT_APPLIED
public static final RelationType SETTINGS_NOT_APPLIED
VCS root is used to store project settings, but project settings associated with a change are not applied to the build configuration yet and it is not clear whether they affect it or not.
-
SETTINGS_DO_NOT_AFFECT_BUILDS
public static final RelationType SETTINGS_DO_NOT_AFFECT_BUILDS
VCS root is used to store project settings, project settings are applied to the build configuration but did not affect build settings there.
-
-
Field Detail
-
ALL_RELATIONS
public static final java.util.Set<RelationType> ALL_RELATIONS
Contains all relation types
-
ALL_EXCEPT_SETTINGS
public static final java.util.Set<RelationType> ALL_EXCEPT_SETTINGS
Contains all relation types except for project settings relations
-
ALL_WITH_SETTINGS_AFFECTING_BUILDS
public static final java.util.Set<RelationType> ALL_WITH_SETTINGS_AFFECTING_BUILDS
-
ALL_SETTINGS
public static final java.util.Set<RelationType> ALL_SETTINGS
-
-
Method Detail
-
values
public static RelationType[] 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 (RelationType c : RelationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RelationType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
create
@NotNull public static RelationType create(@Nullable java.lang.Integer id)
-
id
@Nullable public java.lang.Integer id()
-
-