Class RepositoryTaskHelper
- java.lang.Object
-
- com.atlassian.bamboo.task.repository.RepositoryTaskHelper
-
public class RepositoryTaskHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringCFG_CHECKOUT_DIR_PREFIXstatic StringCFG_DEFAULT_REPOSITORYstatic StringCFG_SELECTED_REPOSITORYstatic StringCFG_SELECTED_REPOSITORY_ID_PREFIXstatic com.google.common.base.Predicate<String>isRepositorySelectorstatic com.google.common.collect.Ordering<String>orderingOfRepositorySelectors
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PlanRepositoryDefinitiongetPlanRepositoryByIdSelector(@NotNull CommonTaskContext commonTaskContext, @NotNull String repositoryIdSelector)static PlanRepositoryDefinitiongetPlanRepositoryByIdSelector(@NotNull CommonContext buildContext, @NotNull TaskDefinition taskDefinition, @NotNull String repositoryIdSelector)static booleanisRepositorySelector(String input)static voidreplaceRepositoryReferences(@NotNull TaskDefinition taskDefinition, @NotNull Map<Long,Long> repositoryIdChanges)static @NotNull List<PlanRepositoryDefinition>safeGetPlanRepositoriesUsedByTask(@NotNull TaskDefinition taskDefinition, @NotNull List<PlanRepositoryDefinition> repositoryDefinitionList)Get list ofPlanRepositoryDefinitionexisting in repositoryDefinitionMap and used by task
-
-
-
Field Detail
-
CFG_SELECTED_REPOSITORY_ID_PREFIX
public static final String CFG_SELECTED_REPOSITORY_ID_PREFIX
-
CFG_DEFAULT_REPOSITORY
public static final String CFG_DEFAULT_REPOSITORY
-
CFG_SELECTED_REPOSITORY
public static final String CFG_SELECTED_REPOSITORY
-
CFG_CHECKOUT_DIR_PREFIX
public static final String CFG_CHECKOUT_DIR_PREFIX
-
isRepositorySelector
public static final com.google.common.base.Predicate<String> isRepositorySelector
-
orderingOfRepositorySelectors
public static final com.google.common.collect.Ordering<String> orderingOfRepositorySelectors
-
-
Method Detail
-
isRepositorySelector
public static final boolean isRepositorySelector(String input)
-
safeGetPlanRepositoriesUsedByTask
@NotNull public static @NotNull List<PlanRepositoryDefinition> safeGetPlanRepositoriesUsedByTask(@NotNull @NotNull TaskDefinition taskDefinition, @NotNull @NotNull List<PlanRepositoryDefinition> repositoryDefinitionList)
Get list ofPlanRepositoryDefinitionexisting in repositoryDefinitionMap and used by task- Parameters:
taskDefinition-repositoryDefinitionList-- Returns:
-
replaceRepositoryReferences
public static void replaceRepositoryReferences(@NotNull @NotNull TaskDefinition taskDefinition, @NotNull @NotNull Map<Long,Long> repositoryIdChanges)
-
getPlanRepositoryByIdSelector
public static PlanRepositoryDefinition getPlanRepositoryByIdSelector(@NotNull @NotNull CommonTaskContext commonTaskContext, @NotNull @NotNull String repositoryIdSelector) throws RepositoryDefinitionException
- Throws:
RepositoryDefinitionException
-
getPlanRepositoryByIdSelector
public static PlanRepositoryDefinition getPlanRepositoryByIdSelector(@NotNull @NotNull CommonContext buildContext, @NotNull @NotNull TaskDefinition taskDefinition, @NotNull @NotNull String repositoryIdSelector) throws RepositoryDefinitionException
- Throws:
RepositoryDefinitionException
-
-