dependsOn
This job will wait until job has terminated.
By default, jobs start immediately.
Example
gitlabCi {
val compile by job {
script {
shell("make")
}
artifacts {
include("output")
}
}
val test by job {
dependsOn(compile, artifacts = true)
script {
shell("make test")
}
}
}.println()
Content copied to clipboard