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