artifacts

fun artifacts(days: Int? = null, builds: Int? = null, artifactPatterns: String? = null)

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.

Parameters

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