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¶
External documentation¶
Parameters¶
- name
-
The name of the job. See
Job.name. If using thebysyntax, the default name is the name of the variable the job is assigned to. - stage
-
The
stagethis job is part of. If unset, see the official documentation.
fun GitLabCi.job(name: String? = null, stage: Stage? = null, block: Job.() -> Unit = {}): DelegateProvider<GitLabCi, ReadOnlyDelegate<ERROR CLASS: Cannot infer argument for type parameter Type>>