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, then they are both null no clean-up will be added
days
- number of days to store artifacts
builds
- number of successful builds to store artifacts for
artifactPatterns
- patterns for artifacts cleanup, if not specified all artifacts will be removed