public class BranchCleanup extends EntityPropertiesBuilder<BranchCleanupProperties>
| Modifier and Type | Field and Description |
|---|---|
static Duration |
DEFAULT_INACTIVE_BRANCH_EXPIRY |
static int |
DEFAULT_INACTIVE_BRANCH_EXPIRY_IN_DAYS
Deprecated.
use
DEFAULT_INACTIVE_BRANCH_EXPIRY instead. |
static Duration |
DEFAULT_REMOVED_BRANCH_EXPIRY |
static int |
DEFAULT_REMOVED_BRANCH_EXPRIRY_IN_DAYS
Deprecated.
use
DEFAULT_REMOVED_BRANCH_EXPIRY instead. |
| Constructor and Description |
|---|
BranchCleanup() |
| Modifier and Type | Method and Description |
|---|---|
protected BranchCleanupProperties |
build() |
BranchCleanup |
whenInactiveInRepository(boolean removeWhenInactiveInRepository)
Enables/disables plan branch removing when branch is inactive (no commits) in repository.
|
BranchCleanup |
whenInactiveInRepositoryAfterDays(int whenInactiveInRepositoryAfterDays)
Defines the time after which the branch should be removed in case of inactivity.
|
BranchCleanup |
whenRemovedFromRepository(boolean removeRemovedFromRepository)
Enables/disables plan branch removing when branch deleted in repository.
|
BranchCleanup |
whenRemovedFromRepositoryAfterDays(int whenRemovedFromRepositoryAfterDays)
Defines the time after which the branch should be removed.
|
public static final Duration DEFAULT_REMOVED_BRANCH_EXPIRY
public static final Duration DEFAULT_INACTIVE_BRANCH_EXPIRY
@Deprecated public static final int DEFAULT_REMOVED_BRANCH_EXPRIRY_IN_DAYS
DEFAULT_REMOVED_BRANCH_EXPIRY instead.@Deprecated public static final int DEFAULT_INACTIVE_BRANCH_EXPIRY_IN_DAYS
DEFAULT_INACTIVE_BRANCH_EXPIRY instead.public BranchCleanup whenRemovedFromRepository(boolean removeRemovedFromRepository) throws PropertiesValidationException
PropertiesValidationExceptionpublic BranchCleanup whenInactiveInRepository(boolean removeWhenInactiveInRepository) throws PropertiesValidationException
PropertiesValidationExceptionpublic BranchCleanup whenRemovedFromRepositoryAfterDays(int whenRemovedFromRepositoryAfterDays) throws PropertiesValidationException
DEFAULT_REMOVED_BRANCH_EXPIRY.PropertiesValidationExceptionpublic BranchCleanup whenInactiveInRepositoryAfterDays(int whenInactiveInRepositoryAfterDays) throws PropertiesValidationException
DEFAULT_INACTIVE_BRANCH_EXPIRY.PropertiesValidationExceptionprotected BranchCleanupProperties build() throws PropertiesValidationException
build in class EntityPropertiesBuilder<BranchCleanupProperties>PropertiesValidationExceptionCopyright © 2023 Atlassian Software Systems Pty Ltd. All rights reserved.