Skip to content

The Job model

Job defines one or more steps to be executed in the same order as they are defined.

The next step will be started once the previous has been finished successfully.

Otherwise, if step fails, it will not continue and the job is marked as failed.

{
  "name": "My_job",
  "steps": [
    {
      "name": "Print_date",
      "command": "date"
    }
  ]
}
Property Type Summary
name string The name of the job
steps Step[] One or more steps
parameters ParameterModel[] Optional pipeline parameters
variables JsonObject Optional pipeline variables
interface Job {
    readonly name        : string;
    readonly steps       : readonly Step[];
    readonly parameters ?: ParameterModel[]   | undefined;
    readonly variables  ?: ReadonlyJsonObject | undefined;
}
Back to top