GitLab CI Kotlin DSL • opensavvy.gitlab.ci • Artifacts • expireIn
expireIn¶
Specifies how long job artifacts are stored before they expire and are deleted.
The expiration time period begins when the artifact is uploaded and stored on GitLab. If no unit is provided, the time is in seconds. Use "never"
to prevent expiration.
Example¶
val build by job {
script {
shell("make build")
}
artifacts {
include("binaries/")
expireIn("1 week")
}
}