stage
Creates a stage with a given name.
Example:
val pipeline = gitlabCi {
val build = stage("some-other-name")
}
Content copied to clipboard
To automatically generate the name from the variable, see stage.
fun GitLabCi.stage(name: String? = null): DelegateProvider<parent: GitLabCi, ReadOnlyDelegate<Stage>>(source)
Creates a stage automatically named after the variable it is assigned to.
Example:
val pipeline = gitlabCi {
val build by stage()
}
Content copied to clipboard
To use a different name than the variable's name, use the stage function.