public class PlanBranchManagement extends EntityPropertiesBuilder<PlanBranchManagementProperties>
| Constructor and Description |
|---|
PlanBranchManagement() |
| Modifier and Type | Method and Description |
|---|---|
PlanBranchManagement |
branchIntegration(@NotNull BranchIntegration branchIntegration)
Sets default merge strategy for new branches.
|
protected PlanBranchManagementProperties |
build() |
PlanBranchManagement |
createForPullRequest()
Create new plan branches for new pull requests - pull requests only from branches.
|
PlanBranchManagement |
createForPullRequest(boolean allowPullRequestFromForks)
Create new plan branches for new pull requests - pull requests either from branches or from both branches and forks.
|
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(@NotNull Trigger<?,?> defaultTrigger)
Created plan branch will use a custom trigger.
|
PlanBranchManagement |
delete(@NotNull 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(boolean allowPullRequestFromForks)
In RSS mode, the branch creation is controlled by the master plan. This setting has no effect on a branch.
allowPullRequestFromForks - if pull requests from forks are allowed. If false, then plan branch will be created only for PRs from default repositorypublic 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 @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.
PropertiesValidationExceptionBranchCleanuppublic 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 @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 @NotNull BranchIntegration branchIntegration) throws PropertiesValidationException
This setting is ignored for Specs branches. Use Plan.branchConfiguration(PlanBranchConfiguration) instead.
PropertiesValidationExceptionBranchIntegrationpublic PlanBranchManagement issueLinkingEnabled(boolean issueLinkingEnabled) throws PropertiesValidationException
PropertiesValidationExceptionprotected PlanBranchManagementProperties build() throws PropertiesValidationException
build in class EntityPropertiesBuilder<PlanBranchManagementProperties>PropertiesValidationExceptionCopyright © 2024 Atlassian Software Systems Pty Ltd. All rights reserved.