Interface RepositoryAwareTaskConfigurator
-
- All Superinterfaces:
BuildTaskRequirementSupport
,TaskConfigurator
- All Known Implementing Classes:
AbstractRepositoryAwareTaskConfigurator
,AbstractVcsTaskConfigurator
,VcsBranchTaskConfigurator
,VcsCheckoutTaskConfigurator
,VcsCommitTaskConfigurator
,VcsPushTaskConfigurator
,VcsTagTaskConfigurator
,WarningsTaskConfigurator
@PublicApi public interface RepositoryAwareTaskConfigurator extends TaskConfigurator, BuildTaskRequirementSupport
Interface declaring that Task configured with this TaskConfigurator referencesRepositoryDefinition
s.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description @NotNull List<PlanRepositoryDefinition>
getPlanRepositoriesUsedByTask(@NotNull TaskDefinition taskDefinition, @NotNull ImmutableJob job)
default @NotNull List<RepositoryDefinition>
getRepositoriesUsedByTask(@NotNull TaskDefinition taskDefinition, @NotNull ImmutableJob job)
Deprecated.since 7.0 usegetPlanRepositoriesUsedByTask(TaskDefinition, ImmutableJob)
instead.void
handleRepositoryIdChanged(@NotNull TaskDefinition taskDefinition, @NotNull Map<Long,Long> repositoryIdChanges)
Action taken if repository id changed, i.e.-
Methods inherited from interface com.atlassian.bamboo.task.BuildTaskRequirementSupport
calculateRequirements
-
Methods inherited from interface com.atlassian.bamboo.task.TaskConfigurator
generateTaskConfigMap, populateContextForCreate, populateContextForEdit, validate
-
-
-
-
Method Detail
-
getRepositoriesUsedByTask
@Deprecated @NotNull default @NotNull List<RepositoryDefinition> getRepositoriesUsedByTask(@NotNull @NotNull TaskDefinition taskDefinition, @NotNull @NotNull ImmutableJob job)
Deprecated.since 7.0 usegetPlanRepositoriesUsedByTask(TaskDefinition, ImmutableJob)
instead.Not used by Bamboo and doesn't need to be implemented.- Parameters:
taskDefinition
- definition of a Taskjob
-- Returns:
- list of
RepositoryDefinition
referenced by the Task
-
getPlanRepositoriesUsedByTask
@NotNull @NotNull List<PlanRepositoryDefinition> getPlanRepositoriesUsedByTask(@NotNull @NotNull TaskDefinition taskDefinition, @NotNull @NotNull ImmutableJob job)
- Parameters:
taskDefinition
- definition of a Taskjob
-- Returns:
- list of
PlanRepositoryDefinition
referenced by the Task
-
handleRepositoryIdChanged
void handleRepositoryIdChanged(@NotNull @NotNull TaskDefinition taskDefinition, @NotNull @NotNull Map<Long,Long> repositoryIdChanges)
Action taken if repository id changed, i.e. after repository is edited. Typically it should replace old repository identifiers with corresponding new id.- Parameters:
taskDefinition
- definition of a TaskrepositoryIdChanges
- mapping between old and new repository identifiers
-
-