| Modifier and Type | Method and Description |
|---|---|
List<TaskDefinition> |
BuildDefinition.getTaskDefinitions()
All tasks defined for this build.
|
List<TaskDefinition> |
PartialBuildDefinition.getTaskDefinitions() |
| Modifier and Type | Method and Description |
|---|---|
void |
BuildDefinition.setTaskDefinitions(List<TaskDefinition> taskDefinitions) |
| Modifier and Type | Method and Description |
|---|---|
Map<ImmutableJob,List<TaskDefinition>> |
RepositoryConfigurationService.getRelevantJobsForRepositoryIdChange(ImmutablePlan plan,
long repositoryId)
Returns mapping between
Job and TaskDefinition for tasks using repository by given repository id |
| Modifier and Type | Method and Description |
|---|---|
TaskDefinition |
TaskConfigurationService.createTask(PlanKey planKey,
TaskModuleDescriptor taskDescriptor,
String userDescription,
boolean isEnabled,
Map<String,String> configuration,
TaskRootDirectorySelector taskRootDirectorySelector)
Create a task Definition and save it against the plan
|
TaskDefinition |
TaskConfigurationService.editTask(PlanKey planKey,
long taskId,
String userDescription,
boolean isEnabled,
Map<String,String> taskConfigurationMap,
TaskRootDirectorySelector taskRootDirectorySelector)
Update the details of specific taskDefinition
|
TaskDefinition |
TaskConfigurationService.setTaskState(PlanKey planKey,
long taskId,
boolean isEnabled)
Update the disable state of specific taskDefinition
|
| Modifier and Type | Method and Description |
|---|---|
List<TaskDefinition> |
TaskConfigurationService.getRelevantTasksForRepositoryId(ImmutableJob job,
long repositoryId)
Return relevant
TaskDefinition for given Job and repositoryId |
List<TaskDefinition> |
TaskContextHelperService.getTasks(ActionParametersMap params) |
List<TaskDefinition> |
TaskContextHelperService.getTasks(Map<String,Object> context) |
List<TaskDefinition> |
TaskContextHelperService.getTasksBeforeTaskId(Map<String,Object> context,
long taskId) |
| Modifier and Type | Method and Description |
|---|---|
void |
RuntimeTaskContext.addRuntimeContextForTask(TaskDefinition taskDefinition,
Map<String,String> taskContext)
Deprecated.
|
Set<Requirement> |
TaskRequirementSupport.calculateRequirements(TaskDefinition taskDefinition)
Populates the
RequirementSet needed based off of the TaskDefinition |
Set<Requirement> |
BuildTaskRequirementSupport.calculateRequirements(TaskDefinition taskDefinition,
Job job)
Populates the
RequirementSet needed based off of the TaskDefinition |
void |
TaskManager.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 |
TaskManager.calculateRequirementsForTaskDefinition(RequirementSet requirementSet,
TaskDefinition taskDefinition,
com.google.common.base.Supplier<Set<Requirement>> requirementSupplier)
Attempts to add
Requirements to the specified RequirementSet. |
Map<String,String> |
TaskConfigurator.generateTaskConfigMap(ActionParametersMap params,
TaskDefinition previousTaskDefinition)
Convert the params from the ui into a config map to be stored in the database for the taskDefinition.
|
Map<String,String> |
RuntimeTaskContext.getRuntimeContextForTask(TaskDefinition taskDefinition)
Deprecated.
|
void |
TaskConfigurator.populateContextForEdit(Map<String,Object> context,
TaskDefinition taskDefinition)
Provide any required context to be used when rendering the freemarker template for view editing a task definition
|
void |
TaskConfigurator.populateContextForView(Map<String,Object> context,
TaskDefinition taskDefinition)
Provide any required context to be used when rendering the freemarker template for viewing a task definition
|
Map<String,String> |
RuntimeTaskDataProvider.populateRuntimeTaskData(TaskDefinition taskDefinition,
CommonContext commonContext)
Server side pre-build action that may be implemented by task.
|
void |
RuntimeTaskDataProvider.processRuntimeTaskData(TaskDefinition taskDefinition,
CommonContext commonContext)
Deprecated.
|
TaskState |
TaskResultProcessor.recalculateTaskState(TaskContext taskContext,
TaskResult taskResult,
TaskDefinition taskDefinition)
Recalculate the
TaskState of a given task and its' result. |
void |
TaskManager.removeRequirementsForTaskDefinition(Buildable buildable,
TaskDefinition taskDefinition)
Removes all the
Requirements that belong to the TaskDefinition |
void |
TaskManager.removeRequirementsForTaskDefinition(RequirementSet requirementSet,
TaskDefinition taskDefinition)
Removes all the
Requirements that belong to the TaskDefinition |
boolean |
TaskManager.taskProducesTestResults(TaskDefinition taskDefinition)
Return true iff task defined in
TaskDefinition is configured to produce test results. |
boolean |
TaskTestResultsSupport.taskProducesTestResults(TaskDefinition taskDefinition)
Returns true iff task defined by TaskDefinition produces test results.
|
void |
TaskManager.updateRepositoryIdsInTask(Job job,
TaskDefinition taskDefinition,
Map<Long,Long> repositoryIdChanges)
Deprecated.
since 4.3, use
TaskManager.updateRepositoryIdsInTask(TaskDefinition, Map) |
void |
TaskManager.updateRepositoryIdsInTask(TaskDefinition taskDefinition,
Map<Long,Long> repositoryIdChanges)
Updates task configurations affected by repository edition.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TaskConfigurationService.createTaskList(PlanKey planKey,
List<TaskDefinition> taskDefinitions)
Initializes task list of a plan with the provided list.
|
| Modifier and Type | Method and Description |
|---|---|
List<TaskDefinition> |
LegacyBuilderToTaskConverter.builder2TaskList(BuildConfiguration buildConfiguration)
Creates a list of tasks out of BuildConfiguration.
|
List<TaskDefinition> |
LegacyBuilderToTaskConverterService.convert(BuildConfiguration buildConfiguration)
Finds a proper LegacyBuilderToTaskConverter and creates List of tasks based on existing builder configuration.
|
| Modifier and Type | Method and Description |
|---|---|
List<RepositoryDefinition> |
RepositoryAwareTaskConfigurator.getRepositoriesUsedByTask(TaskDefinition taskDefinition,
ImmutableJob job) |
void |
RepositoryAwareTaskConfigurator.handleRepositoryIdChanged(TaskDefinition taskDefinition,
Job job,
Map<Long,Long> repositoryIdChanges)
Deprecated.
|
void |
RepositoryAwareTaskConfigurator.handleRepositoryIdChanged(TaskDefinition taskDefinition,
Map<Long,Long> repositoryIdChanges)
Action taken if repository id changed, i.e.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
RuntimeTaskDefinition
Task definition extended with runtime information
|
| Modifier and Type | Method and Description |
|---|---|
List<TaskDefinition> |
CommonContext.getTaskDefinitions()
Deprecated.
since 5.9 use
CommonContext.getRuntimeTaskDefinitions() |
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.