public class RepositoryTaskHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CFG_DEFAULT_REPOSITORY |
static String |
CFG_SELECTED_REPOSITORY |
static String |
CFG_SELECTED_REPOSITORY_ID_PREFIX |
static com.google.common.base.Predicate<String> |
isRepositorySelector |
static com.google.common.collect.Ordering<String> |
orderingOfRepositorySelectors |
public static final String CFG_SELECTED_REPOSITORY_ID_PREFIX
public static final String CFG_DEFAULT_REPOSITORY
public static final String CFG_SELECTED_REPOSITORY
public static final com.google.common.base.Predicate<String> isRepositorySelector
public static final com.google.common.collect.Ordering<String> orderingOfRepositorySelectors
public static final boolean isRepositorySelector(String input)
@NotNull public static List<Result<RepositoryDefinitionException,RepositoryDefinition>> getRepositoriesUsedByTask(@NotNull TaskDefinition taskDefinition, @NotNull List<RepositoryDefinition> repositoryDefinitionList)
@NotNull public static List<RepositoryDefinition> safeGetRepositoriesUsedByTask(@NotNull TaskDefinition taskDefinition, @NotNull List<RepositoryDefinition> repositoryDefinitionList)
RepositoryDefinition
existing in repositoryDefinitionMap and used by tasktaskDefinition
- repositoryDefinitionList
- @NotNull public static List<PlanRepositoryDefinition> safeGetPlanRepositoriesUsedByTask(@NotNull TaskDefinition taskDefinition, @NotNull List<PlanRepositoryDefinition> repositoryDefinitionList)
PlanRepositoryDefinition
existing in repositoryDefinitionMap and used by tasktaskDefinition
- repositoryDefinitionList
- public static void replaceRepositoryReferences(@NotNull TaskDefinition taskDefinition, @NotNull Map<Long,Long> repositoryIdChanges)
public static RepositoryDefinition getRepositoryDefinitionByIdSelector(@NotNull CommonTaskContext commonTaskContext, @NotNull String repositoryIdSelector) throws RepositoryDefinitionException
RepositoryDefinitionException
public static RepositoryDefinition getRepositoryDefinitionByIdSelector(@NotNull CommonContext buildContext, @NotNull TaskDefinition taskDefinition, @NotNull String repositoryIdSelector) throws RepositoryDefinitionException
RepositoryDefinitionException
public static PlanRepositoryDefinition getPlanRepositoryByIdSelector(@NotNull CommonTaskContext commonTaskContext, @NotNull String repositoryIdSelector) throws RepositoryDefinitionException
RepositoryDefinitionException
public static PlanRepositoryDefinition getPlanRepositoryByIdSelector(@NotNull CommonContext buildContext, @NotNull TaskDefinition taskDefinition, @NotNull String repositoryIdSelector) throws RepositoryDefinitionException
RepositoryDefinitionException
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.