Class TagBasedBuildChainModifier
- java.lang.Object
-
- jetbrains.buildServer.serverSide.dependency.TagBasedBuildChainModifier
-
public class TagBasedBuildChainModifier extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
ARTIFACT_CHANGE_PREFIX
static String
BUILD_CHAIN_SKIP_REQUEST
static String
BUILD_CHAIN_TRIGGER_PREFIX
static String
EXPLICITLY_SKIPPED_BY_TAGS
static String
FLOW_ID
static String
LOG_BLOCK_NAME
static String
NON_INCLUDED_BY_TAGS_CONFIGURATIONS
-
Constructor Summary
Constructors Constructor Description TagBasedBuildChainModifier(BuildPromotion top, BuildQueueEx buildQueue, List<String> tagsToSkip, List<String> tagsToInclude, String cancelBuildComment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyChanges()
-
-
-
Field Detail
-
LOG_BLOCK_NAME
public static final String LOG_BLOCK_NAME
- See Also:
- Constant Field Values
-
BUILD_CHAIN_SKIP_REQUEST
public static final String BUILD_CHAIN_SKIP_REQUEST
- See Also:
- Constant Field Values
-
BUILD_CHAIN_TRIGGER_PREFIX
public static final String BUILD_CHAIN_TRIGGER_PREFIX
- See Also:
- Constant Field Values
-
NON_INCLUDED_BY_TAGS_CONFIGURATIONS
public static final String NON_INCLUDED_BY_TAGS_CONFIGURATIONS
- See Also:
- Constant Field Values
-
EXPLICITLY_SKIPPED_BY_TAGS
public static final String EXPLICITLY_SKIPPED_BY_TAGS
- See Also:
- Constant Field Values
-
ARTIFACT_CHANGE_PREFIX
public static final String ARTIFACT_CHANGE_PREFIX
- See Also:
- Constant Field Values
-
FLOW_ID
public static final String FLOW_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TagBasedBuildChainModifier
public TagBasedBuildChainModifier(@NotNull BuildPromotion top, @NotNull BuildQueueEx buildQueue, @NotNull List<String> tagsToSkip, @NotNull List<String> tagsToInclude, @Nullable String cancelBuildComment)
- Parameters:
top
- top build of the build chain to apply changes tobuildQueue
-tagsToSkip
- build configurations from the chain which are marked with such tags will be removed from the build chain, including their dependencies (unless such dependencies have non-skipped usages)tagsToInclude
- if not empty, the resulting chain will contain only build configurations tagged with marked by tagsToInclude tags + path from the top build to the included configuration + dependencies of the included configuration. If tagsToSkip is present, too, it overrides tagsToInclude, i.e. it is possible to exclude configurations which are explicitly marked for inclusion.cancelBuildComment
- if null, the builds to skip will be silently removed, otherwise they will be canceled with this comment
-
-