fun artifacts(days: Int? = null, builds: Int? = null, artifactPatterns: String? = null): Unit
Adds an artifacts-level clean-up rule. Either days or builds must be non-null. If they are both null, clean-up will not be configured.
days
- number of days to store artifacts
builds
- number of successful builds to store artifacts for
artifactPatterns
- patterns for artifacts clean-up; if not specified, all artifacts will be removed