com.atlassian.bamboo.task
Interface BuildTaskRequirementSupport

All Known Subinterfaces:
RepositoryAwareTaskConfigurator
All Known Implementing Classes:
AbstractRepositoryAwareTaskConfigurator, AntBuildTaskConfigurator, CommandBuildTaskConfigurator, GrailsTaskConfigurator, PhpUnitBuildTaskConfigurator, VcsBranchingTaskConfigurator, VcsCheckoutTaskConfigurator, VcsTaggingTaskConfigurator

public interface BuildTaskRequirementSupport

Allows creators of TaskTypes to specify Requirements. There are three interfaces which you can use for this purpose TaskRequirementSupport: Preferred option. Will work for both deployment environments and for jobs (you can not implement the other interfaces if using this) BuildTaskRequirementSupport: Supports Jobs only. Only use if you require the job information to generate your task's requirements (can be used in conjunction with DeploymentTaskRequirementSupport) DeploymentTaskRequirementSupport: Supports Environments only. Only use if you require the environment information to generate your task's requirements (can be used in conjunction with BuildTaskRequirementSupport)

Since:
3.3

Method Summary
 java.util.Set<Requirement> calculateRequirements(TaskDefinition taskDefinition, Job job)
          Populates the RequirementSet needed based off of the TaskDefinition
 

Method Detail

calculateRequirements

@NotNull
java.util.Set<Requirement> calculateRequirements(@NotNull
                                                         TaskDefinition taskDefinition,
                                                         @NotNull
                                                         Job job)
Populates the RequirementSet needed based off of the TaskDefinition

Parameters:
taskDefinition -
job -
Returns:
requirements


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.