Class BuildExpiryConfig

    • Constructor Detail

      • BuildExpiryConfig

        public BuildExpiryConfig()
      • BuildExpiryConfig

        public BuildExpiryConfig​(int buildsToKeep)
      • BuildExpiryConfig

        public BuildExpiryConfig​(int duration,
                                 String period)
      • BuildExpiryConfig

        public BuildExpiryConfig​(int duration,
                                 String period,
                                 int buildsToKeep)
    • Method Detail

      • 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()
        One of "days", "weeks", or "months"
      • getDuration

        public int getDuration()
      • getBuildsToKeep

        public int getBuildsToKeep()
      • setBuildsToKeep

        public void setBuildsToKeep​(int buildsToKeep)
      • setPeriod

        public void setPeriod​(String myPeriod)
      • setDuration

        public void setDuration​(int myDuration)
      • isExpireByDate

        public boolean isExpireByDate()
      • isExpireByBuild

        public boolean isExpireByBuild()
      • setLabelsToKeep

        public void setLabelsToKeep​(String labelsToKeep)
      • getMaximumBuildsToKeep

        public int getMaximumBuildsToKeep()
      • setMaximumBuildsToKeep

        public void setMaximumBuildsToKeep​(int maximumBuildsToKeep)
      • hasMaximumBuildsToKeep

        public boolean hasMaximumBuildsToKeep()
      • getCronExpression

        @NotNull
        public @NotNull String getCronExpression()
      • setCronExpression

        public void setCronExpression​(String cronExpression)
      • getLabelsList

        @NotNull
        public @NotNull List<String> getLabelsList()
        Returns an immutable list of labels that should be matched
        Returns:
        immutable list of Strings representing the labels
      • getExpiryPeriod

        public org.joda.time.Period getExpiryPeriod()
        Get the expiry period as a Joda time Period object
        Returns:
        Period
        Throws:
        IllegalArgumentException - if the period text is of an unknown type
      • getMaxIgnoredLogSize

        public long getMaxIgnoredLogSize()
      • setMaxIgnoredLogSize

        public void setMaxIgnoredLogSize​(long maxIgnoredLogSize)
      • isEnabled

        public boolean isEnabled()
      • setEnabled

        public void setEnabled​(boolean enabled)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • readResolve

        protected Object readResolve()