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 |
defaultTrigger(Trigger<?,?> defaultTrigger)
Created plan branch will use a custom trigger.
|
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()
Created plan branch can only be triggered manually only.
|
public PlanBranchManagement createManually()
In RSS mode, the branch creation is controlled by the master plan. This setting has no effect on a branch.
public PlanBranchManagement createForPullRequest()
In RSS mode, the branch creation is controlled by the master plan. This setting has no effect on a branch.
public PlanBranchManagement createForVcsBranch()
In RSS mode, the branch creation is controlled by the master plan. This setting has no effect on a branch.
public PlanBranchManagement createForVcsBranchMatching(String pattern)
In RSS mode, the branch creation is controlled by the master plan. This setting has no effect on a branch.
pattern
- regexp to match branch namepublic PlanBranchManagement delete(@NotNull BranchCleanup removedBranchCleanup) throws PropertiesValidationException
In RSS mode, the branch expiry is controlled by the master plan. This setting has no effect on a branch.
PropertiesValidationException
BranchCleanup
public PlanBranchManagement triggerBuildsManually()
This setting is ignored for Specs branches. Use Plan.triggers(Trigger[])
instead.
public PlanBranchManagement triggerBuildsLikeParentPlan()
This setting is ignored for Specs branches. Use Plan.triggers(Trigger[])
instead.
public PlanBranchManagement defaultTrigger(@NotNull Trigger<?,?> defaultTrigger)
This setting is ignored for Specs branches. Use Plan.triggers(Trigger[])
instead.
public PlanBranchManagement notificationForCommitters()
This setting is ignored for Specs branches. Use Plan.notifications(Notification...)
instead.
public PlanBranchManagement notificationLikeParentPlan()
This setting is ignored for Specs branches. Use Plan.notifications(Notification...)
instead.
public PlanBranchManagement notificationDisabled()
This setting is ignored for Specs branches. Use Plan.notifications(Notification...)
instead.
public PlanBranchManagement branchIntegration(@NotNull BranchIntegration branchIntegration) throws PropertiesValidationException
This setting is ignored for Specs branches. Use Plan.branchConfiguration(PlanBranchConfiguration)
instead.
PropertiesValidationException
BranchIntegration
public PlanBranchManagement issueLinkingEnabled(boolean issueLinkingEnabled) throws PropertiesValidationException
PropertiesValidationException
protected PlanBranchManagementProperties build() throws PropertiesValidationException
build
in class EntityPropertiesBuilder<PlanBranchManagementProperties>
PropertiesValidationException
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.