|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@PublicApi public interface TaskManager
| Method Summary | |
|---|---|
void |
calculateRequirementsForTaskDefinition(Job job,
TaskDefinition taskDefinition)
Attempts to add Requirements to the specified Buildable if the TaskConfigurator is an implementor of BuildTaskRequirementSupport
If requirements are already present for the specified TaskDefinition they will be removed and recalculated |
void |
calculateRequirementsForTaskDefinition(RequirementSet requirementSet,
TaskDefinition taskDefinition,
com.google.common.base.Supplier<Set<Requirement>> requirementSupplier)
Attempts to add Requirements to the specified RequirementSet. |
List<TaskModuleDescriptor> |
getAvailableBuildTaskDescriptors()
|
List<TaskModuleDescriptor> |
getAvailableDeploymentTaskDescriptors()
|
List<TaskModuleDescriptor> |
getAvailableTaskDescriptors()
|
Map<String,String> |
getExecutableLabelTypeMap()
Returns a map of currently available "configured" executables - uniquely identified by a label. |
TaskModuleDescriptor |
getTaskDescriptor(String pluginKey)
Get the task type descriptor matching a particular plugin key. |
Collection<Requirement> |
getTasksRequirements(Job job)
Return Requirements for all tasks of Buildable if the TaskConfigurator is an implementor of BuildTaskRequirementSupport |
void |
removeRequirementsForTaskDefinition(Buildable buildable,
TaskDefinition taskDefinition)
Removes all the Requirements that belong to the TaskDefinition |
void |
removeRequirementsForTaskDefinition(RequirementSet requirementSet,
TaskDefinition taskDefinition)
Removes all the Requirements that belong to the TaskDefinition |
boolean |
taskProducesTestResults(TaskDefinition taskDefinition)
Return true iff task defined in TaskDefinition is configured to produce test results. |
void |
updateRepositoryIdsInTask(Job job,
TaskDefinition taskDefinition,
Map<Long,Long> repositoryIdChanges)
Deprecated. since 4.3, use updateRepositoryIdsInTask(TaskDefinition, Map) |
void |
updateRepositoryIdsInTask(TaskDefinition taskDefinition,
Map<Long,Long> repositoryIdChanges)
Updates task configurations affected by repository edition. |
void |
updateWorkingDirSelectors(ImmutableBuildable job,
BuildDefinition buildDefinition,
Map<Long,Long> repositoryIdsChanges)
Calculates id of the repository that defines working directory after repository or task edition. |
| Method Detail |
|---|
@NotNull List<TaskModuleDescriptor> getAvailableTaskDescriptors()
@NotNull List<TaskModuleDescriptor> getAvailableBuildTaskDescriptors()
@NotNull List<TaskModuleDescriptor> getAvailableDeploymentTaskDescriptors()
@Nullable
TaskModuleDescriptor getTaskDescriptor(@Nullable
String pluginKey)
pluginKey - - key to match
void calculateRequirementsForTaskDefinition(@NotNull
Job job,
@NotNull
TaskDefinition taskDefinition)
Requirements to the specified Buildable if the TaskConfigurator is an implementor of BuildTaskRequirementSupport
If requirements are already present for the specified TaskDefinition they will be removed and recalculated
job - taskDefinition -
void calculateRequirementsForTaskDefinition(@NotNull
RequirementSet requirementSet,
@NotNull
TaskDefinition taskDefinition,
com.google.common.base.Supplier<Set<Requirement>> requirementSupplier)
Requirements to the specified RequirementSet. How to get the requirements from the task Definition is determined by the supplier.
If requirements are already present for the specified TaskDefinition they will be removed and recalculated
requirementSet - to add requirements update requirements intaskDefinition - to calculate requirements from
void removeRequirementsForTaskDefinition(@NotNull
Buildable buildable,
@NotNull
TaskDefinition taskDefinition)
Requirements that belong to the TaskDefinition
buildable - to remove requirements fromtaskDefinition - that was removed
void removeRequirementsForTaskDefinition(@NotNull
RequirementSet requirementSet,
@NotNull
TaskDefinition taskDefinition)
Requirements that belong to the TaskDefinition
requirementSet - to remove requirements fromtaskDefinition - that was removed
@NotNull
Collection<Requirement> getTasksRequirements(@NotNull
Job job)
Requirements for all tasks of Buildable if the TaskConfigurator is an implementor of BuildTaskRequirementSupport
job@throws - IllegalStateException
boolean taskProducesTestResults(@NotNull
TaskDefinition taskDefinition)
TaskDefinition is configured to produce test results.
taskDefinition -
Map<String,String> getExecutableLabelTypeMap()
void updateRepositoryIdsInTask(@NotNull
TaskDefinition taskDefinition,
@NotNull
Map<Long,Long> repositoryIdChanges)
taskDefinition - repositoryIdChanges - mapping between old and new repositories ids
@Deprecated
void updateRepositoryIdsInTask(@NotNull
Job job,
@NotNull
TaskDefinition taskDefinition,
@NotNull
Map<Long,Long> repositoryIdChanges)
updateRepositoryIdsInTask(TaskDefinition, Map)
job - taskDefinition - repositoryIdChanges - mapping between old and new repositories ids
void updateWorkingDirSelectors(@NotNull
ImmutableBuildable job,
@NotNull
BuildDefinition buildDefinition,
@NotNull
Map<Long,Long> repositoryIdsChanges)
job - affected jobbuildDefinition - repositoryIdsChanges - mapping between old and new repositories ids
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||