jobs list definition
The jobs list specifies the jobs that make up the work of a stage.
jobs: [ job ] #
Properties that use this definition: pipeline.jobs
List types
| Type | Description |
|---|---|
| jobs.job | Agent pool job. |
jobs: [ job ] #
Properties that use this definition: pipeline.jobs
List types
| Type | Description |
|---|---|
| jobs.job | Agent pool job. |
jobs: [ job | deployment | template ] #
Properties that use this definition: pipeline.jobs, stages.stage.jobs
List types
| Type | Description |
|---|---|
| jobs.job | Agent pool job. |
| jobs.deployment | Deployment job. |
| jobs.template | Jobs defined in a template file. |
jobs: [ job | deployment | template ] #
Properties that use this definition: pipeline.jobs, stages.stage.jobs
List types
| Type | Description |
|---|---|
| jobs.job | Agent pool job. |
| jobs.deployment | Deployment job. |
| jobs.template | Jobs defined in a template file. |
jobs: [ job | deployment | template ] #
Properties that use this definition: pipeline.jobs, stages.stage.jobs
List types
| Type | Description |
|---|---|
| jobs.job | Agent pool job. |
| jobs.deployment | Deployment job. |
| jobs.template | Jobs defined in a template file. |
jobs: [ job | deployment | template ] #
Properties that use this definition: pipeline.jobs, stages.stage.jobs
List types
| Type | Description |
|---|---|
| jobs.job | Agent pool job. |
| jobs.deployment | Deployment job. |
| jobs.template | Jobs defined in a template file. |
Remarks
A job is a collection of steps run by an agent or on a server. Jobs can run conditionally and might depend on earlier jobs.
Note
If you have only one stage and one job, you can use single-job syntax as a shorter way to describe the steps to run.
Examples
jobs:
- job: MyJob
displayName: My First Job
continueOnError: true
workspace:
clean: outputs
steps:
- script: echo My first job
See also
- For more information about
uses, see Limit job authorization scope to referenced Azure DevOps repositories. For more information about workspaces, including clean options, see the workspace topic in Jobs. - Learn more about variables, steps, pools, and server jobs.
Feedback
Submit and view feedback for