Skip to content

GitLab CI Kotlin DSLopensavvy.gitlab.ciArtifactsexposeAs

exposeAs

fun exposeAs(name: String)

Exposes job artifacts in the merge request UI with a custom display name.

This creates a download link in the merge request UI that displays the specified name. A maximum of 10 job artifacts per merge request can be exposed.

Example

val test by job {
    script {
        shell("echo 'test results' results.txt")
    }

    artifacts {
        include("results.txt")
        exposeAs("Test Results")
    }
}

External resources