GitLab CI Kotlin DSL • opensavvy.gitlab.ci • Artifacts • exclude
exclude¶
Prevents files from being added to the artifacts archive.
Paths are relative to the project directory and can use wildcards with glob patterns. You can call this method multiple times to exclude multiple paths.
Example¶
val build by job {
script {
shell("make build")
}
artifacts {
include("binaries/")
exclude("binaries/**/*.o")
exclude("*.tmp")
}
}