Represents a phase of a build definition.

interface Phase {
    condition?: string;
    dependencies?: Dependency[];
    jobAuthorizationScope?: BuildAuthorizationScope;
    jobCancelTimeoutInMinutes?: number;
    jobTimeoutInMinutes?: number;
    name?: string;
    refName?: string;
    steps?: BuildDefinitionStep[];
    target?: PhaseTarget;
    variables?: { [key: string]: BuildDefinitionVariable };
}

Properties

condition?: string

The condition that must be true for this phase to execute.

dependencies?: Dependency[]
jobAuthorizationScope?: BuildAuthorizationScope

The job authorization scope for builds queued against this definition.

jobCancelTimeoutInMinutes?: number

The cancellation timeout, in minutes, for builds queued against this definition.

jobTimeoutInMinutes?: number

The job execution timeout, in minutes, for builds queued against this definition.

name?: string

The name of the phase.

refName?: string

The unique ref name of the phase.

target?: PhaseTarget

The target (agent, server, etc.) for this phase.

variables?: { [key: string]: BuildDefinitionVariable }