Skip to content

GitLab CI Kotlin DSLopensavvy.gitlab.ciArtifactsname

name

fun name(name: String)

Defines the name of the created artifacts archive.

If not defined, the default name is artifacts, which becomes artifacts.zip when downloaded. CI/CD variables are supported in the name.

Example

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

    artifacts {
        include("binaries/")
        name("build-artifacts-${CI_COMMIT_REF_NAME}")
    }
}

External resources