Base Rule
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
}
}
Content copied to clipboard
See also
Constructors
Link copied to clipboard
constructor(level: CleanupLevel, days: Int? = null, builds: Int? = null, artifactPatterns: String? = null)