BaseRule

data class BaseRule(    val level: CleanupLevel,     val days: Int? = null,     val builds: Int? = null,     val artifactPatterns: String? = null)

Base clean-up rule, use one of the methods in Cleanup to create it

Example. Sets custom base cleanup rules options.

cleanup {
    baseRule {
        history(builds = 3, days = 5)
        artifacts(builds = 3, days = 5, artifactPatterns = "+:log*")
        preventDependencyCleanup = true
    }
}

See also

Constructors

Link copied to clipboard
constructor(    level: CleanupLevel,     days: Int? = null,     builds: Int? = null,     artifactPatterns: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
val builds: Int? = null
Link copied to clipboard
val days: Int? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val type: String?