public class PlanBranchManagement extends EntityPropertiesBuilder<PlanBranchManagementProperties>
Constructor and Description |
---|
PlanBranchManagement() |
Modifier and Type | Method and Description |
---|---|
PlanBranchManagement |
branchIntegration(BranchIntegration branchIntegration)
Sets default merge strategy for new branches.
|
protected PlanBranchManagementProperties |
build() |
PlanBranchManagement |
createForPullRequest()
Create new plan branches for new pull requests.
|
PlanBranchManagement |
createForVcsBranch()
Create new plan branches for new branches in default repository.
|
PlanBranchManagement |
createForVcsBranchMatching(String pattern)
Create new plan branches for new branches with name which matches pattern.
|
PlanBranchManagement |
createManually()
Disable automatic plan branch creation.
|
PlanBranchManagement |
delete(BranchCleanup removedBranchCleanup)
Sets configuration of automatic removal of branches.
|
PlanBranchManagement |
issueLinkingEnabled(boolean issueLinkingEnabled)
Enables/disables automatic JIRA issue link creation when new branch is created.
|
PlanBranchManagement |
notificationDisabled()
No notifications will be sent for the created branch.
|
PlanBranchManagement |
notificationForCommitters()
All committers and people who have favourited the branch will be notified for all build failures and the first successful build.
|
PlanBranchManagement |
notificationLikeParentPlan()
Use the same notification rules as configured for the master plan.
|
PlanBranchManagement |
triggerBuildsLikeParentPlan()
Created plan branch will use the same triggers as master plan.
|
PlanBranchManagement |
triggerBuildsManually()
Create plan branch can only be triggered manually only.
|
public PlanBranchManagement createManually()
public PlanBranchManagement createForPullRequest()
public PlanBranchManagement createForVcsBranch()
public PlanBranchManagement createForVcsBranchMatching(String pattern)
pattern
- regexp to match branch namepublic PlanBranchManagement delete(@NotNull BranchCleanup removedBranchCleanup) throws PropertiesValidationException
PropertiesValidationException
BranchCleanup
public PlanBranchManagement triggerBuildsManually()
public PlanBranchManagement triggerBuildsLikeParentPlan()
public PlanBranchManagement notificationForCommitters()
public PlanBranchManagement notificationLikeParentPlan()
public PlanBranchManagement notificationDisabled()
public PlanBranchManagement branchIntegration(@NotNull BranchIntegration branchIntegration) throws PropertiesValidationException
PropertiesValidationException
BranchIntegration
public PlanBranchManagement issueLinkingEnabled(boolean issueLinkingEnabled) throws PropertiesValidationException
PropertiesValidationException
protected PlanBranchManagementProperties build() throws PropertiesValidationException
build
in class EntityPropertiesBuilder<PlanBranchManagementProperties>
PropertiesValidationException
Copyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.