GitLab CI Kotlin DSL • opensavvy.gitlab.ci • job
job
Declares a new Job
in the current pipeline
.
A job is a unit of work in a pipeline: each job is executed by a runner. Jobs can have dependencies
, artifacts
and more.
Example
gitlabCi {
val build by job {
useGradle()
script {
gradlew.task("build")
}
}
}.println()
External documentation
Parameters
- name
-
The name of the job. See Job.name
. If using the by
syntax, the default name is the name of the variable the job is assigned to.
- stage
-
The stage
this job is part of. If unset, see the official documentation.
Declares a new Job
in the current pipeline
.
A job is a unit of work in a pipeline: each job is executed by a runner. Jobs can have dependencies
, artifacts
and more.
Example
gitlabCi {
val build by job {
useGradle()
script {
gradlew.task("build")
}
}
}.println()
External documentation
Parameters
- name
-
The name of the job. See Job.name
. If using the by
syntax, the default name is the name of the variable the job is assigned to.
- stage
-
The stage
this job is part of. See Job.stage
.