Share via


jobs definition

Specifies the jobs that make up the work of a pipeline.

jobs: [ job ] # Specifies the jobs that make up the work of a pipeline.

Definitions that reference this definition: pipeline

List types

Type Description
jobs.job A job is a collection of steps run by an agent or on a server.

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