public class BranchIntegration extends EntityPropertiesBuilder<BranchIntegrationProperties>
Constructor and Description |
---|
BranchIntegration() |
Modifier and Type | Method and Description |
---|---|
protected BranchIntegrationProperties |
build() |
BranchIntegration |
enabled(boolean enabled)
Enables/disables automatic branch merging.
|
BranchIntegration |
gatekeeper(boolean gatekeeper)
Selects merging strategy.
|
BranchIntegration |
integrationBranch(PlanBranchIdentifier integrationBranch)
Sets integration branch identifier.
|
BranchIntegration |
integrationBranchKey(BambooKey integrationBranchKey)
Sets integration branch key.
|
BranchIntegration |
integrationBranchKey(String integrationBranchKey)
Sets integration branch key.
|
BranchIntegration |
integrationBranchOid(BambooOid integrationBranchOid)
Sets integration branch oid.
|
BranchIntegration |
integrationBranchOid(String integrationBranchOid)
Sets integration branch oid.
|
BranchIntegration |
pushOnSuccessfulBuild(boolean push)
Enables/disables executing push on successful build.
|
public BranchIntegration enabled(boolean enabled) throws PropertiesValidationException
PropertiesValidationException
public BranchIntegration integrationBranchOid(@NotNull String integrationBranchOid) throws PropertiesValidationException
If both oid and key is defined, key is ignored.
PropertiesValidationException
public BranchIntegration integrationBranchOid(@NotNull BambooOid integrationBranchOid) throws PropertiesValidationException
If both oid and key is defined, key is ignored.
PropertiesValidationException
public BranchIntegration integrationBranchKey(@NotNull String integrationBranchKey) throws PropertiesValidationException
If both oid and key is defined, key is ignored.
PropertiesValidationException
public BranchIntegration integrationBranchKey(@NotNull BambooKey integrationBranchKey) throws PropertiesValidationException
If both oid and key is defined, key is ignored.
PropertiesValidationException
public BranchIntegration integrationBranch(@NotNull PlanBranchIdentifier integrationBranch) throws PropertiesValidationException
If both oid and key is defined by the identifier, key is ignored.
PropertiesValidationException
public BranchIntegration gatekeeper(boolean gatekeeper) throws PropertiesValidationException
Default is false (current branch is the target of the merge).
PropertiesValidationException
public BranchIntegration pushOnSuccessfulBuild(boolean push) throws PropertiesValidationException
gatekeeper(boolean)
option.
Feature is turned off by default.PropertiesValidationException
protected BranchIntegrationProperties build() throws PropertiesValidationException
build
in class EntityPropertiesBuilder<BranchIntegrationProperties>
PropertiesValidationException
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.