Class CombinedExpiryConfig


  • public class CombinedExpiryConfig
    extends Object
    A helper POJO to hold fields for configuring build and deployment expiry combined.
    • Constructor Detail

      • CombinedExpiryConfig

        public CombinedExpiryConfig()
      • CombinedExpiryConfig

        public CombinedExpiryConfig​(@Nullable
                                    @Nullable BuildExpiryConfig buildExpiryConfig)
      • CombinedExpiryConfig

        public CombinedExpiryConfig​(@Nullable
                                    @Nullable DeploymentExpiryConfig deploymentExpiryConfig)
    • Method Detail

      • getSelectedExpiryTypesLabelKeys

        @NotNull
        public @NotNull List<String> getSelectedExpiryTypesLabelKeys​(boolean deploymentExpiryEnabled)
      • toBuildExpiryConfig

        @NotNull
        public @NotNull BuildExpiryConfig toBuildExpiryConfig()
      • getExpiryTypeLabelKey

        @NotNull
        public static @NotNull String getExpiryTypeLabelKey​(@NotNull
                                                            @NotNull BuildExpiryType buildExpiryType,
                                                            boolean withDeployments)
      • isEnabled

        public boolean isEnabled()
      • getCronExpression

        public String getCronExpression()
      • setCronExpression

        public void setCronExpression​(String cronExpression)
      • 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

        public String getPeriod()
      • setPeriod

        public void setPeriod​(String period)
      • 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

        public String getLabelsToKeep()
      • setLabelsToKeep

        public void setLabelsToKeep​(String labelsToKeep)
      • 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)