Represents a build definition.

interface BuildDefinition {
    _links?: any;
    authoredBy?: IdentityRef;
    badgeEnabled?: boolean;
    buildNumberFormat?: string;
    comment?: string;
    createdDate?: Date;
    demands?: Demand[];
    description?: string;
    draftOf?: DefinitionReference;
    drafts?: DefinitionReference[];
    dropLocation?: string;
    id?: number;
    jobAuthorizationScope?: BuildAuthorizationScope;
    jobCancelTimeoutInMinutes?: number;
    jobTimeoutInMinutes?: number;
    latestBuild?: Build;
    latestCompletedBuild?: Build;
    metrics?: BuildMetric[];
    name?: string;
    options?: BuildOption[];
    path?: string;
    process?: BuildProcess;
    processParameters?: ProcessParameters;
    project?: TeamProjectReference;
    properties?: any;
    quality?: DefinitionQuality;
    queue?: AgentPoolQueue;
    queueStatus?: DefinitionQueueStatus;
    repository?: BuildRepository;
    retentionRules?: RetentionPolicy[];
    revision?: number;
    tags?: string[];
    triggers?: BuildTrigger[];
    type?: DefinitionType;
    uri?: string;
    url?: string;
    variableGroups?: VariableGroup[];
    variables?: { [key: string]: BuildDefinitionVariable };
}

Hierarchy (View Summary)

Properties

_links?: any
authoredBy?: IdentityRef

The author of the definition.

badgeEnabled?: boolean

Indicates whether badges are enabled for this definition.

buildNumberFormat?: string

The build number format.

comment?: string

A save-time comment for the definition.

createdDate?: Date

The date this version of the definition was created.

demands?: Demand[]
description?: string

The description.

A reference to the definition that this definition is a draft of, if this is a draft definition.

The list of drafts associated with this definition, if this is not a draft definition.

dropLocation?: string

The drop location for the definition.

id?: number

The ID of the referenced definition.

jobAuthorizationScope?: BuildAuthorizationScope

The job authorization scope for builds queued against this definition.

jobCancelTimeoutInMinutes?: number

The job cancel timeout (in minutes) for builds cancelled by user for this definition.

jobTimeoutInMinutes?: number

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

latestBuild?: Build
latestCompletedBuild?: Build
metrics?: BuildMetric[]
name?: string

The name of the referenced definition.

options?: BuildOption[]
path?: string

The folder path of the definition.

process?: BuildProcess

The build process.

processParameters?: ProcessParameters

The process parameters for this definition.

A reference to the project.

properties?: any

The quality of the definition document (draft, etc.)

The default queue for builds run against this definition.

queueStatus?: DefinitionQueueStatus

A value that indicates whether builds can be queued against this definition.

repository?: BuildRepository

The repository.

retentionRules?: RetentionPolicy[]
revision?: number

The definition revision number.

tags?: string[]
triggers?: BuildTrigger[]

The type of the definition.

uri?: string

The definition's URI.

url?: string

The REST URL of the definition.

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