Skip to content

GitLab CI Kotlin DSLopensavvy.gitlab.ciArtifactsinclude

include

fun include(path: String)

Specifies which files to save as job artifacts.

Paths are relative to the project directory and can use wildcards with glob patterns. You can call this method multiple times to include multiple paths.

Example

val build by job {
    script {
        shell("make build")
    }

    artifacts {
        include("binaries/")
        include(".config")
        include("*.log")
    }
}

External resources