com.atlassian.bamboo.task.repository
Interface RepositoryAwareTaskConfigurator
- All Superinterfaces:
- BuildTaskRequirementSupport, TaskConfigurator
- All Known Implementing Classes:
- AbstractRepositoryAwareTaskConfigurator, VcsBranchingTaskConfigurator, VcsCheckoutTaskConfigurator, VcsTaggingTaskConfigurator
public interface RepositoryAwareTaskConfigurator
- extends TaskConfigurator, BuildTaskRequirementSupport
Interface declaring that Task configured with this TaskConfigurator references RepositoryDefinition
s.
getRepositoriesUsedByTask
@NotNull
java.util.List<RepositoryDefinition> getRepositoriesUsedByTask(@NotNull
TaskDefinition taskDefinition,
@NotNull
ImmutableJob job)
- Parameters:
taskDefinition
- definition of a Taskjob
-
- Returns:
- list of
RepositoryDefinition
referenced by the Task
handleRepositoryIdChanged
void handleRepositoryIdChanged(@NotNull
TaskDefinition taskDefinition,
@NotNull
Job job,
@NotNull
java.util.Map<java.lang.Long,java.lang.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 Taskjob
- repositoryIdChanges
- mapping between old and new repository identifiers
Copyright © 2012 Atlassian. All Rights Reserved.