Package com.atlassian.bamboo.plan.branch
Enum Class PlanBranchWorkflow
- All Implemented Interfaces:
Serializable
,Comparable<PlanBranchWorkflow>
,Constable
Types of workflows for automatic plan branch management.
- Since:
- 6.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionBranch workflow indicates that Bamboo will react on VCS branches being created and/or deleted in the repository when managing plan branches.Pull request (from both master repository and forked repositories) workflow indicates that Bamboo will react on pull requests being created and/or deleted in the repository when managing plan branches.Manual workflow indicates that Bamboo will not react on VCS branches nor pull requests being created and/or deleted in the repository when managing plan branches.Pull request workflow indicates that Bamboo will react on pull requests being created and/or deleted in the repository when managing plan branches. -
Method Summary
Modifier and TypeMethodDescriptionstatic PlanBranchWorkflow
Returns the default workflow.static @NotNull PlanBranchWorkflow
Returns an instance ofPlanBranchWorkflow
based on the passedkey
.@NotNull Set<BranchIntegrationStrategy>
Allowed integration strategies for this workflow.@NotNull String
getKey()
Key to be used for storing this enum in any configuration as string.boolean
static PlanBranchWorkflow
Returns the enum constant of this class with the specified name.static PlanBranchWorkflow[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BRANCH_WORKFLOW
Branch workflow indicates that Bamboo will react on VCS branches being created and/or deleted in the repository when managing plan branches. -
MANUAL_WORKFLOW
Manual workflow indicates that Bamboo will not react on VCS branches nor pull requests being created and/or deleted in the repository when managing plan branches. -
PULL_REQUEST_WORKFLOW
Pull request workflow indicates that Bamboo will react on pull requests being created and/or deleted in the repository when managing plan branches. This workflow does not let perform pull requests from forked repositories. -
FORK_ENABLED_PULL_REQUEST_WORKFLOW
Pull request (from both master repository and forked repositories) workflow indicates that Bamboo will react on pull requests being created and/or deleted in the repository when managing plan branches.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
defaultValue
Returns the default workflow. -
fromKey
Returns an instance ofPlanBranchWorkflow
based on the passedkey
.- Parameters:
key
- key of the workflow- Returns:
- instance of plan branching workflow
- Throws:
IllegalArgumentException
- if the key does not match any known workflow
-
getKey
Key to be used for storing this enum in any configuration as string. -
getIntegrationStrategies
Allowed integration strategies for this workflow. -
isOneOfPullRequestWorkflows
public boolean isOneOfPullRequestWorkflows()
-