Skip to content

GitLab CI Kotlin DSLopensavvy.gitlab.cistage

stage

fun GitLabCi.stage(name: String): Stage

Creates a stage with a given name.

Example:

val pipeline = gitlabCi {
    val build = stage("some-other-name")
}

To automatically generate the name from the variable, see stage.

Creates a stage automatically named after the variable it is assigned to.

Example:

val pipeline = gitlabCi {
    val build by stage()
}

To use a different name than the variable's name, use the stage function.