Class CombinedExpiryConfig
java.lang.Object
com.atlassian.bamboo.build.expiry.CombinedExpiryConfig
A helper POJO to hold fields for configuring build and deployment expiry combined.
-
Constructor Summary
ConstructorDescriptionCombinedExpiryConfig
(@Nullable BuildExpiryConfig buildExpiryConfig) CombinedExpiryConfig
(@Nullable BuildExpiryConfig buildExpiryConfig, @Nullable DeploymentExpiryConfig deploymentExpiryConfig) CombinedExpiryConfig
(@Nullable DeploymentExpiryConfig deploymentExpiryConfig) -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
int
static @NotNull String
getExpiryTypeLabelKey
(@NotNull BuildExpiryType buildExpiryType, boolean withDeployments) long
int
getSelectedExpiryTypesLabelKeys
(boolean deploymentExpiryEnabled) boolean
boolean
boolean
boolean
boolean
void
setAnyDeploymentsToKeep
(int anyDeploymentsToKeep) void
setBuildsToKeep
(int buildsToKeep) void
setCronExpression
(String cronExpression) void
setDeploymentsToKeep
(int deploymentsToKeep) void
setDuration
(int duration) void
setExpiryTypeArtifact
(boolean expiryTypeArtifact) void
setExpiryTypeBuildLog
(boolean expiryTypeBuildLog) void
setExpiryTypeNothing
(boolean expiryTypeNothing) void
setExpiryTypeResult
(boolean expiryTypeResult) void
setLabelsToKeep
(String labelsToKeep) void
setMaxIgnoredLogSize
(long maxIgnoredLogSize) void
setMaximumBuildsToKeep
(int maximumBuildsToKeep) void
@NotNull BuildExpiryConfig
@NotNull DeploymentExpiryConfig
-
Constructor Details
-
CombinedExpiryConfig
public CombinedExpiryConfig() -
CombinedExpiryConfig
-
CombinedExpiryConfig
-
CombinedExpiryConfig
public CombinedExpiryConfig(@Nullable @Nullable BuildExpiryConfig buildExpiryConfig, @Nullable @Nullable DeploymentExpiryConfig deploymentExpiryConfig)
-
-
Method Details
-
getSelectedExpiryTypesLabelKeys
-
toBuildExpiryConfig
-
toDeploymentExpiryConfig
-
getExpiryTypeLabelKey
@NotNull public static @NotNull String getExpiryTypeLabelKey(@NotNull @NotNull BuildExpiryType buildExpiryType, boolean withDeployments) -
isEnabled
public boolean isEnabled() -
getCronExpression
-
setCronExpression
-
isExpiryTypeNothing
public boolean isExpiryTypeNothing() -
setExpiryTypeNothing
public void setExpiryTypeNothing(boolean expiryTypeNothing) -
isExpiryTypeResult
public boolean isExpiryTypeResult() -
setExpiryTypeResult
public void setExpiryTypeResult(boolean expiryTypeResult) -
isExpiryTypeArtifact
public boolean isExpiryTypeArtifact() -
setExpiryTypeArtifact
public void setExpiryTypeArtifact(boolean expiryTypeArtifact) -
isExpiryTypeBuildLog
public boolean isExpiryTypeBuildLog() -
setExpiryTypeBuildLog
public void setExpiryTypeBuildLog(boolean expiryTypeBuildLog) -
getPeriod
-
setPeriod
-
getDuration
public int getDuration() -
setDuration
public void setDuration(int duration) -
getBuildsToKeep
public int getBuildsToKeep() -
setBuildsToKeep
public void setBuildsToKeep(int buildsToKeep) -
getDeploymentsToKeep
public int getDeploymentsToKeep() -
setDeploymentsToKeep
public void setDeploymentsToKeep(int deploymentsToKeep) -
getLabelsToKeep
-
setLabelsToKeep
-
getMaxIgnoredLogSize
public long getMaxIgnoredLogSize() -
setMaxIgnoredLogSize
public void setMaxIgnoredLogSize(long maxIgnoredLogSize) -
getMaximumBuildsToKeep
public int getMaximumBuildsToKeep() -
setMaximumBuildsToKeep
public void setMaximumBuildsToKeep(int maximumBuildsToKeep) -
getAnyDeploymentsToKeep
public int getAnyDeploymentsToKeep() -
setAnyDeploymentsToKeep
public void setAnyDeploymentsToKeep(int anyDeploymentsToKeep)
-