@PublicApi
public interface BuildTaskRequirementSupport
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 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)
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)Modifier and Type | Method and Description |
---|---|
Set<Requirement> |
calculateRequirements(TaskDefinition taskDefinition,
Job job)
Populates the
RequirementSet needed based off of the TaskDefinition |
@NotNull Set<Requirement> calculateRequirements(@NotNull TaskDefinition taskDefinition, @NotNull Job job)
RequirementSet
needed based off of the TaskDefinition
taskDefinition
- job
- Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.