Class BranchIntegration
java.lang.Object
com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<BranchIntegrationProperties>
com.atlassian.bamboo.specs.api.builders.plan.branches.BranchIntegration
Represents branch merging strategy.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected BranchIntegrationProperties
build()
enabled
(boolean enabled) Enables/disables automatic branch merging.gatekeeper
(boolean gatekeeper) Selects merging strategy.integrationBranch
(@NotNull PlanBranchIdentifier integrationBranch) Sets integration branch identifier.integrationBranchKey
(@NotNull BambooKey integrationBranchKey) Sets integration branch key.integrationBranchKey
(@NotNull String integrationBranchKey) Sets integration branch key.integrationBranchOid
(@NotNull BambooOid integrationBranchOid) Sets integration branch oid.integrationBranchOid
(@NotNull String integrationBranchOid) Sets integration branch oid.pushOnSuccessfulBuild
(boolean push) Enables/disables executing push on successful build.
-
Constructor Details
-
BranchIntegration
public BranchIntegration()
-
-
Method Details
-
enabled
Enables/disables automatic branch merging. Enabled by default.- Throws:
PropertiesValidationException
-
integrationBranchOid
public BranchIntegration integrationBranchOid(@NotNull @NotNull String integrationBranchOid) throws PropertiesValidationException Sets integration branch oid.If both oid and key is defined, key is ignored.
- Throws:
PropertiesValidationException
-
integrationBranchOid
public BranchIntegration integrationBranchOid(@NotNull @NotNull BambooOid integrationBranchOid) throws PropertiesValidationException Sets integration branch oid.If both oid and key is defined, key is ignored.
- Throws:
PropertiesValidationException
-
integrationBranchKey
public BranchIntegration integrationBranchKey(@NotNull @NotNull String integrationBranchKey) throws PropertiesValidationException Sets integration branch key.If both oid and key is defined, key is ignored.
- Throws:
PropertiesValidationException
-
integrationBranchKey
public BranchIntegration integrationBranchKey(@NotNull @NotNull BambooKey integrationBranchKey) throws PropertiesValidationException Sets integration branch key.If both oid and key is defined, key is ignored.
- Throws:
PropertiesValidationException
-
integrationBranch
public BranchIntegration integrationBranch(@NotNull @NotNull PlanBranchIdentifier integrationBranch) throws PropertiesValidationException Sets integration branch identifier.If both oid and key is defined by the identifier, key is ignored.
- Throws:
PropertiesValidationException
-
gatekeeper
Selects merging strategy. If true, the integration branch is the target branch of the merge and, possibly, the push. If false, the integration branch is the source branch of the merge, and current branch is the target.Default is false (current branch is the target of the merge).
- Throws:
PropertiesValidationException
-
pushOnSuccessfulBuild
Enables/disables executing push on successful build. The target branch is selected by settinggatekeeper(boolean)
option. Feature is turned off by default.- Throws:
PropertiesValidationException
-
build
- Specified by:
build
in classEntityPropertiesBuilder<BranchIntegrationProperties>
- Throws:
PropertiesValidationException
-