Package com.atlassian.bamboo.task
Interface TaskRequirementSupport
- All Known Implementing Classes:
AbstractMavenBuildTaskConfigurator
,AntBuildTaskConfigurator
,CommandBuildTaskConfigurator
,Maven1BuildTaskConfigurator
,Maven2BuildTaskConfigurator
,Maven3BuildTaskConfigurator
@PublicApi
public interface TaskRequirementSupport
Allows creators of
TaskType
s to specify Requirement
s.
There are three interfaces which you can use for this purpose
TaskRequirementSupport
: Preferred option. Will work for both deployment environment 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)
com.atlassian.bamboo.deployments.environments.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:
- 5.0
-
Method Summary
Modifier and TypeMethodDescription@NotNull Set<Requirement>
calculateRequirements
(@NotNull TaskDefinition taskDefinition) Populates theRequirementSet
needed based off of theTaskDefinition
-
Method Details
-
calculateRequirements
@NotNull @NotNull Set<Requirement> calculateRequirements(@NotNull @NotNull TaskDefinition taskDefinition) Populates theRequirementSet
needed based off of theTaskDefinition
- Parameters:
taskDefinition
-- Returns:
- requirements
-