1. Packages
  2. Azure DevOps Provider
  3. API Docs
  4. getBuildDefinition
Azure DevOps v3.8.0 published on Monday, Mar 17, 2025 by Pulumi

azuredevops.getBuildDefinition

Explore with Pulumi AI

Use this data source to access information about an existing Build Definition.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";

const example = azuredevops.getProject({
    name: "Example Project",
});
const exampleGetBuildDefinition = example.then(example => azuredevops.getBuildDefinition({
    projectId: example.id,
    name: "existing",
}));
export const id = exampleGetBuildDefinition.then(exampleGetBuildDefinition => exampleGetBuildDefinition.id);
Copy
import pulumi
import pulumi_azuredevops as azuredevops

example = azuredevops.get_project(name="Example Project")
example_get_build_definition = azuredevops.get_build_definition(project_id=example.id,
    name="existing")
pulumi.export("id", example_get_build_definition.id)
Copy
package main

import (
	"github.com/pulumi/pulumi-azuredevops/sdk/v3/go/azuredevops"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := azuredevops.LookupProject(ctx, &azuredevops.LookupProjectArgs{
			Name: pulumi.StringRef("Example Project"),
		}, nil)
		if err != nil {
			return err
		}
		exampleGetBuildDefinition, err := azuredevops.LookupBuildDefinition(ctx, &azuredevops.LookupBuildDefinitionArgs{
			ProjectId: example.Id,
			Name:      "existing",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("id", exampleGetBuildDefinition.Id)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;

return await Deployment.RunAsync(() => 
{
    var example = AzureDevOps.GetProject.Invoke(new()
    {
        Name = "Example Project",
    });

    var exampleGetBuildDefinition = AzureDevOps.GetBuildDefinition.Invoke(new()
    {
        ProjectId = example.Apply(getProjectResult => getProjectResult.Id),
        Name = "existing",
    });

    return new Dictionary<string, object?>
    {
        ["id"] = exampleGetBuildDefinition.Apply(getBuildDefinitionResult => getBuildDefinitionResult.Id),
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azuredevops.AzuredevopsFunctions;
import com.pulumi.azuredevops.inputs.GetProjectArgs;
import com.pulumi.azuredevops.inputs.GetBuildDefinitionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = AzuredevopsFunctions.getProject(GetProjectArgs.builder()
            .name("Example Project")
            .build());

        final var exampleGetBuildDefinition = AzuredevopsFunctions.getBuildDefinition(GetBuildDefinitionArgs.builder()
            .projectId(example.applyValue(getProjectResult -> getProjectResult.id()))
            .name("existing")
            .build());

        ctx.export("id", exampleGetBuildDefinition.applyValue(getBuildDefinitionResult -> getBuildDefinitionResult.id()));
    }
}
Copy
variables:
  example:
    fn::invoke:
      function: azuredevops:getProject
      arguments:
        name: Example Project
  exampleGetBuildDefinition:
    fn::invoke:
      function: azuredevops:getBuildDefinition
      arguments:
        projectId: ${example.id}
        name: existing
outputs:
  id: ${exampleGetBuildDefinition.id}
Copy

Using getBuildDefinition

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getBuildDefinition(args: GetBuildDefinitionArgs, opts?: InvokeOptions): Promise<GetBuildDefinitionResult>
function getBuildDefinitionOutput(args: GetBuildDefinitionOutputArgs, opts?: InvokeOptions): Output<GetBuildDefinitionResult>
Copy
def get_build_definition(name: Optional[str] = None,
                         path: Optional[str] = None,
                         project_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetBuildDefinitionResult
def get_build_definition_output(name: Optional[pulumi.Input[str]] = None,
                         path: Optional[pulumi.Input[str]] = None,
                         project_id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetBuildDefinitionResult]
Copy
func LookupBuildDefinition(ctx *Context, args *LookupBuildDefinitionArgs, opts ...InvokeOption) (*LookupBuildDefinitionResult, error)
func LookupBuildDefinitionOutput(ctx *Context, args *LookupBuildDefinitionOutputArgs, opts ...InvokeOption) LookupBuildDefinitionResultOutput
Copy

> Note: This function is named LookupBuildDefinition in the Go SDK.

public static class GetBuildDefinition 
{
    public static Task<GetBuildDefinitionResult> InvokeAsync(GetBuildDefinitionArgs args, InvokeOptions? opts = null)
    public static Output<GetBuildDefinitionResult> Invoke(GetBuildDefinitionInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetBuildDefinitionResult> getBuildDefinition(GetBuildDefinitionArgs args, InvokeOptions options)
public static Output<GetBuildDefinitionResult> getBuildDefinition(GetBuildDefinitionArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azuredevops:index/getBuildDefinition:getBuildDefinition
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
The name of this Build Definition.
ProjectId This property is required. string
The ID of the project.
Path string
The path of the build definition. Default to \.
Name This property is required. string
The name of this Build Definition.
ProjectId This property is required. string
The ID of the project.
Path string
The path of the build definition. Default to \.
name This property is required. String
The name of this Build Definition.
projectId This property is required. String
The ID of the project.
path String
The path of the build definition. Default to \.
name This property is required. string
The name of this Build Definition.
projectId This property is required. string
The ID of the project.
path string
The path of the build definition. Default to \.
name This property is required. str
The name of this Build Definition.
project_id This property is required. str
The ID of the project.
path str
The path of the build definition. Default to \.
name This property is required. String
The name of this Build Definition.
projectId This property is required. String
The ID of the project.
path String
The path of the build definition. Default to \.

getBuildDefinition Result

The following output properties are available:

AgentPoolName string
The agent pool that should execute the build.
AgentSpecification string
The Agent Specification to run the pipelines. Example: windows-2019, windows-latest, macos-13 etc.
CiTriggers List<Pulumi.AzureDevOps.Outputs.GetBuildDefinitionCiTrigger>
A ci_trigger block as defined below.
Id string
The provider-assigned unique ID for this managed resource.
JobAuthorizationScope string
The job authorization scope for builds queued against this definition.
Jobs List<Pulumi.AzureDevOps.Outputs.GetBuildDefinitionJob>
A jobs blocks as documented below.
Name string
The name of the variable.
ProjectId string
PullRequestTriggers List<Pulumi.AzureDevOps.Outputs.GetBuildDefinitionPullRequestTrigger>
A pull_request_trigger block as defined below.
QueueStatus string
The queue status of the build definition.
Repositories List<Pulumi.AzureDevOps.Outputs.GetBuildDefinitionRepository>
A repository block as defined below.
Revision int
The revision of the build definition.
Schedules List<Pulumi.AzureDevOps.Outputs.GetBuildDefinitionSchedule>
A schedules block as defined below.
VariableGroups List<int>
A list of variable group IDs.
Variables List<Pulumi.AzureDevOps.Outputs.GetBuildDefinitionVariable>
A variable block as defined below.
Path string
AgentPoolName string
The agent pool that should execute the build.
AgentSpecification string
The Agent Specification to run the pipelines. Example: windows-2019, windows-latest, macos-13 etc.
CiTriggers []GetBuildDefinitionCiTrigger
A ci_trigger block as defined below.
Id string
The provider-assigned unique ID for this managed resource.
JobAuthorizationScope string
The job authorization scope for builds queued against this definition.
Jobs []GetBuildDefinitionJob
A jobs blocks as documented below.
Name string
The name of the variable.
ProjectId string
PullRequestTriggers []GetBuildDefinitionPullRequestTrigger
A pull_request_trigger block as defined below.
QueueStatus string
The queue status of the build definition.
Repositories []GetBuildDefinitionRepository
A repository block as defined below.
Revision int
The revision of the build definition.
Schedules []GetBuildDefinitionSchedule
A schedules block as defined below.
VariableGroups []int
A list of variable group IDs.
Variables []GetBuildDefinitionVariable
A variable block as defined below.
Path string
agentPoolName String
The agent pool that should execute the build.
agentSpecification String
The Agent Specification to run the pipelines. Example: windows-2019, windows-latest, macos-13 etc.
ciTriggers List<GetBuildDefinitionCiTrigger>
A ci_trigger block as defined below.
id String
The provider-assigned unique ID for this managed resource.
jobAuthorizationScope String
The job authorization scope for builds queued against this definition.
jobs List<GetBuildDefinitionJob>
A jobs blocks as documented below.
name String
The name of the variable.
projectId String
pullRequestTriggers List<GetBuildDefinitionPullRequestTrigger>
A pull_request_trigger block as defined below.
queueStatus String
The queue status of the build definition.
repositories List<GetBuildDefinitionRepository>
A repository block as defined below.
revision Integer
The revision of the build definition.
schedules List<GetBuildDefinitionSchedule>
A schedules block as defined below.
variableGroups List<Integer>
A list of variable group IDs.
variables List<GetBuildDefinitionVariable>
A variable block as defined below.
path String
agentPoolName string
The agent pool that should execute the build.
agentSpecification string
The Agent Specification to run the pipelines. Example: windows-2019, windows-latest, macos-13 etc.
ciTriggers GetBuildDefinitionCiTrigger[]
A ci_trigger block as defined below.
id string
The provider-assigned unique ID for this managed resource.
jobAuthorizationScope string
The job authorization scope for builds queued against this definition.
jobs GetBuildDefinitionJob[]
A jobs blocks as documented below.
name string
The name of the variable.
projectId string
pullRequestTriggers GetBuildDefinitionPullRequestTrigger[]
A pull_request_trigger block as defined below.
queueStatus string
The queue status of the build definition.
repositories GetBuildDefinitionRepository[]
A repository block as defined below.
revision number
The revision of the build definition.
schedules GetBuildDefinitionSchedule[]
A schedules block as defined below.
variableGroups number[]
A list of variable group IDs.
variables GetBuildDefinitionVariable[]
A variable block as defined below.
path string
agent_pool_name str
The agent pool that should execute the build.
agent_specification str
The Agent Specification to run the pipelines. Example: windows-2019, windows-latest, macos-13 etc.
ci_triggers Sequence[GetBuildDefinitionCiTrigger]
A ci_trigger block as defined below.
id str
The provider-assigned unique ID for this managed resource.
job_authorization_scope str
The job authorization scope for builds queued against this definition.
jobs Sequence[GetBuildDefinitionJob]
A jobs blocks as documented below.
name str
The name of the variable.
project_id str
pull_request_triggers Sequence[GetBuildDefinitionPullRequestTrigger]
A pull_request_trigger block as defined below.
queue_status str
The queue status of the build definition.
repositories Sequence[GetBuildDefinitionRepository]
A repository block as defined below.
revision int
The revision of the build definition.
schedules Sequence[GetBuildDefinitionSchedule]
A schedules block as defined below.
variable_groups Sequence[int]
A list of variable group IDs.
variables Sequence[GetBuildDefinitionVariable]
A variable block as defined below.
path str
agentPoolName String
The agent pool that should execute the build.
agentSpecification String
The Agent Specification to run the pipelines. Example: windows-2019, windows-latest, macos-13 etc.
ciTriggers List<Property Map>
A ci_trigger block as defined below.
id String
The provider-assigned unique ID for this managed resource.
jobAuthorizationScope String
The job authorization scope for builds queued against this definition.
jobs List<Property Map>
A jobs blocks as documented below.
name String
The name of the variable.
projectId String
pullRequestTriggers List<Property Map>
A pull_request_trigger block as defined below.
queueStatus String
The queue status of the build definition.
repositories List<Property Map>
A repository block as defined below.
revision Number
The revision of the build definition.
schedules List<Property Map>
A schedules block as defined below.
variableGroups List<Number>
A list of variable group IDs.
variables List<Property Map>
A variable block as defined below.
path String

Supporting Types

GetBuildDefinitionCiTrigger

Overrides This property is required. List<Pulumi.AzureDevOps.Inputs.GetBuildDefinitionCiTriggerOverride>
A override block as defined below.
UseYaml This property is required. bool
Use the azure-pipeline file for the build configuration.
Overrides This property is required. []GetBuildDefinitionCiTriggerOverride
A override block as defined below.
UseYaml This property is required. bool
Use the azure-pipeline file for the build configuration.
overrides This property is required. List<GetBuildDefinitionCiTriggerOverride>
A override block as defined below.
useYaml This property is required. Boolean
Use the azure-pipeline file for the build configuration.
overrides This property is required. GetBuildDefinitionCiTriggerOverride[]
A override block as defined below.
useYaml This property is required. boolean
Use the azure-pipeline file for the build configuration.
overrides This property is required. Sequence[GetBuildDefinitionCiTriggerOverride]
A override block as defined below.
use_yaml This property is required. bool
Use the azure-pipeline file for the build configuration.
overrides This property is required. List<Property Map>
A override block as defined below.
useYaml This property is required. Boolean
Use the azure-pipeline file for the build configuration.

GetBuildDefinitionCiTriggerOverride

Batch This property is required. bool
If batch is true, when a pipeline is running, the system waits until the run is completed, then starts another run with all changes that have not yet been built.
BranchFilters This property is required. List<Pulumi.AzureDevOps.Inputs.GetBuildDefinitionCiTriggerOverrideBranchFilter>
A branch_filter block as defined above.
MaxConcurrentBuildsPerBranch This property is required. int
The number of max builds per branch.
PathFilters This property is required. List<Pulumi.AzureDevOps.Inputs.GetBuildDefinitionCiTriggerOverridePathFilter>
The file paths to include or exclude. A path_filter block as defined above.
PollingInterval This property is required. int
How often the external repository is polled.
PollingJobId This property is required. string
This is the ID of the polling job that polls the external repository. Once the build definition is saved/updated, this value is set.
Batch This property is required. bool
If batch is true, when a pipeline is running, the system waits until the run is completed, then starts another run with all changes that have not yet been built.
BranchFilters This property is required. []GetBuildDefinitionCiTriggerOverrideBranchFilter
A branch_filter block as defined above.
MaxConcurrentBuildsPerBranch This property is required. int
The number of max builds per branch.
PathFilters This property is required. []GetBuildDefinitionCiTriggerOverridePathFilter
The file paths to include or exclude. A path_filter block as defined above.
PollingInterval This property is required. int
How often the external repository is polled.
PollingJobId This property is required. string
This is the ID of the polling job that polls the external repository. Once the build definition is saved/updated, this value is set.
batch This property is required. Boolean
If batch is true, when a pipeline is running, the system waits until the run is completed, then starts another run with all changes that have not yet been built.
branchFilters This property is required. List<GetBuildDefinitionCiTriggerOverrideBranchFilter>
A branch_filter block as defined above.
maxConcurrentBuildsPerBranch This property is required. Integer
The number of max builds per branch.
pathFilters This property is required. List<GetBuildDefinitionCiTriggerOverridePathFilter>
The file paths to include or exclude. A path_filter block as defined above.
pollingInterval This property is required. Integer
How often the external repository is polled.
pollingJobId This property is required. String
This is the ID of the polling job that polls the external repository. Once the build definition is saved/updated, this value is set.
batch This property is required. boolean
If batch is true, when a pipeline is running, the system waits until the run is completed, then starts another run with all changes that have not yet been built.
branchFilters This property is required. GetBuildDefinitionCiTriggerOverrideBranchFilter[]
A branch_filter block as defined above.
maxConcurrentBuildsPerBranch This property is required. number
The number of max builds per branch.
pathFilters This property is required. GetBuildDefinitionCiTriggerOverridePathFilter[]
The file paths to include or exclude. A path_filter block as defined above.
pollingInterval This property is required. number
How often the external repository is polled.
pollingJobId This property is required. string
This is the ID of the polling job that polls the external repository. Once the build definition is saved/updated, this value is set.
batch This property is required. bool
If batch is true, when a pipeline is running, the system waits until the run is completed, then starts another run with all changes that have not yet been built.
branch_filters This property is required. Sequence[GetBuildDefinitionCiTriggerOverrideBranchFilter]
A branch_filter block as defined above.
max_concurrent_builds_per_branch This property is required. int
The number of max builds per branch.
path_filters This property is required. Sequence[GetBuildDefinitionCiTriggerOverridePathFilter]
The file paths to include or exclude. A path_filter block as defined above.
polling_interval This property is required. int
How often the external repository is polled.
polling_job_id This property is required. str
This is the ID of the polling job that polls the external repository. Once the build definition is saved/updated, this value is set.
batch This property is required. Boolean
If batch is true, when a pipeline is running, the system waits until the run is completed, then starts another run with all changes that have not yet been built.
branchFilters This property is required. List<Property Map>
A branch_filter block as defined above.
maxConcurrentBuildsPerBranch This property is required. Number
The number of max builds per branch.
pathFilters This property is required. List<Property Map>
The file paths to include or exclude. A path_filter block as defined above.
pollingInterval This property is required. Number
How often the external repository is polled.
pollingJobId This property is required. String
This is the ID of the polling job that polls the external repository. Once the build definition is saved/updated, this value is set.

GetBuildDefinitionCiTriggerOverrideBranchFilter

Excludes This property is required. List<string>
(Optional) List of path patterns to exclude.
Includes This property is required. List<string>
(Optional) List of path patterns to include.
Excludes This property is required. []string
(Optional) List of path patterns to exclude.
Includes This property is required. []string
(Optional) List of path patterns to include.
excludes This property is required. List<String>
(Optional) List of path patterns to exclude.
includes This property is required. List<String>
(Optional) List of path patterns to include.
excludes This property is required. string[]
(Optional) List of path patterns to exclude.
includes This property is required. string[]
(Optional) List of path patterns to include.
excludes This property is required. Sequence[str]
(Optional) List of path patterns to exclude.
includes This property is required. Sequence[str]
(Optional) List of path patterns to include.
excludes This property is required. List<String>
(Optional) List of path patterns to exclude.
includes This property is required. List<String>
(Optional) List of path patterns to include.

GetBuildDefinitionCiTriggerOverridePathFilter

Excludes This property is required. List<string>
(Optional) List of path patterns to exclude.
Includes This property is required. List<string>
(Optional) List of path patterns to include.
Excludes This property is required. []string
(Optional) List of path patterns to exclude.
Includes This property is required. []string
(Optional) List of path patterns to include.
excludes This property is required. List<String>
(Optional) List of path patterns to exclude.
includes This property is required. List<String>
(Optional) List of path patterns to include.
excludes This property is required. string[]
(Optional) List of path patterns to exclude.
includes This property is required. string[]
(Optional) List of path patterns to include.
excludes This property is required. Sequence[str]
(Optional) List of path patterns to exclude.
includes This property is required. Sequence[str]
(Optional) List of path patterns to include.
excludes This property is required. List<String>
(Optional) List of path patterns to exclude.
includes This property is required. List<String>
(Optional) List of path patterns to include.

GetBuildDefinitionJob

AllowScriptsAuthAccessOption This property is required. bool
Enables scripts and other processes launched by tasks to access the OAuth token through the System.AccessToken variable.
Condition This property is required. string
Specifies when this job should run. Can Custom conditions to specify more complex conditions. More details: Pipeline conditions
Dependencies This property is required. List<Pulumi.AzureDevOps.Inputs.GetBuildDefinitionJobDependency>
A dependencies blocks as documented below. Define the job dependencies.
JobAuthorizationScope This property is required. string
The job authorization scope for builds queued against this definition.
JobCancelTimeoutInMinutes This property is required. int
The job cancel timeout (in minutes) for builds cancelled by user for this definition.
JobTimeoutInMinutes This property is required. int
The job execution timeout (in minutes) for builds queued against this definition.
Name This property is required. string
The name of this Build Definition.
RefName This property is required. string
The reference name of the job, can be used to define the job dependencies.
Targets This property is required. List<Pulumi.AzureDevOps.Inputs.GetBuildDefinitionJobTarget>
A target blocks as documented below.
AllowScriptsAuthAccessOption This property is required. bool
Enables scripts and other processes launched by tasks to access the OAuth token through the System.AccessToken variable.
Condition This property is required. string
Specifies when this job should run. Can Custom conditions to specify more complex conditions. More details: Pipeline conditions
Dependencies This property is required. []GetBuildDefinitionJobDependency
A dependencies blocks as documented below. Define the job dependencies.
JobAuthorizationScope This property is required. string
The job authorization scope for builds queued against this definition.
JobCancelTimeoutInMinutes This property is required. int
The job cancel timeout (in minutes) for builds cancelled by user for this definition.
JobTimeoutInMinutes This property is required. int
The job execution timeout (in minutes) for builds queued against this definition.
Name This property is required. string
The name of this Build Definition.
RefName This property is required. string
The reference name of the job, can be used to define the job dependencies.
Targets This property is required. []GetBuildDefinitionJobTarget
A target blocks as documented below.
allowScriptsAuthAccessOption This property is required. Boolean
Enables scripts and other processes launched by tasks to access the OAuth token through the System.AccessToken variable.
condition This property is required. String
Specifies when this job should run. Can Custom conditions to specify more complex conditions. More details: Pipeline conditions
dependencies This property is required. List<GetBuildDefinitionJobDependency>
A dependencies blocks as documented below. Define the job dependencies.
jobAuthorizationScope This property is required. String
The job authorization scope for builds queued against this definition.
jobCancelTimeoutInMinutes This property is required. Integer
The job cancel timeout (in minutes) for builds cancelled by user for this definition.
jobTimeoutInMinutes This property is required. Integer
The job execution timeout (in minutes) for builds queued against this definition.
name This property is required. String
The name of this Build Definition.
refName This property is required. String
The reference name of the job, can be used to define the job dependencies.
targets This property is required. List<GetBuildDefinitionJobTarget>
A target blocks as documented below.
allowScriptsAuthAccessOption This property is required. boolean
Enables scripts and other processes launched by tasks to access the OAuth token through the System.AccessToken variable.
condition This property is required. string
Specifies when this job should run. Can Custom conditions to specify more complex conditions. More details: Pipeline conditions
dependencies This property is required. GetBuildDefinitionJobDependency[]
A dependencies blocks as documented below. Define the job dependencies.
jobAuthorizationScope This property is required. string
The job authorization scope for builds queued against this definition.
jobCancelTimeoutInMinutes This property is required. number
The job cancel timeout (in minutes) for builds cancelled by user for this definition.
jobTimeoutInMinutes This property is required. number
The job execution timeout (in minutes) for builds queued against this definition.
name This property is required. string
The name of this Build Definition.
refName This property is required. string
The reference name of the job, can be used to define the job dependencies.
targets This property is required. GetBuildDefinitionJobTarget[]
A target blocks as documented below.
allow_scripts_auth_access_option This property is required. bool
Enables scripts and other processes launched by tasks to access the OAuth token through the System.AccessToken variable.
condition This property is required. str
Specifies when this job should run. Can Custom conditions to specify more complex conditions. More details: Pipeline conditions
dependencies This property is required. Sequence[GetBuildDefinitionJobDependency]
A dependencies blocks as documented below. Define the job dependencies.
job_authorization_scope This property is required. str
The job authorization scope for builds queued against this definition.
job_cancel_timeout_in_minutes This property is required. int
The job cancel timeout (in minutes) for builds cancelled by user for this definition.
job_timeout_in_minutes This property is required. int
The job execution timeout (in minutes) for builds queued against this definition.
name This property is required. str
The name of this Build Definition.
ref_name This property is required. str
The reference name of the job, can be used to define the job dependencies.
targets This property is required. Sequence[GetBuildDefinitionJobTarget]
A target blocks as documented below.
allowScriptsAuthAccessOption This property is required. Boolean
Enables scripts and other processes launched by tasks to access the OAuth token through the System.AccessToken variable.
condition This property is required. String
Specifies when this job should run. Can Custom conditions to specify more complex conditions. More details: Pipeline conditions
dependencies This property is required. List<Property Map>
A dependencies blocks as documented below. Define the job dependencies.
jobAuthorizationScope This property is required. String
The job authorization scope for builds queued against this definition.
jobCancelTimeoutInMinutes This property is required. Number
The job cancel timeout (in minutes) for builds cancelled by user for this definition.
jobTimeoutInMinutes This property is required. Number
The job execution timeout (in minutes) for builds queued against this definition.
name This property is required. String
The name of this Build Definition.
refName This property is required. String
The reference name of the job, can be used to define the job dependencies.
targets This property is required. List<Property Map>
A target blocks as documented below.

GetBuildDefinitionJobDependency

Scope This property is required. string
The job reference name that depends on. Reference to jobs.ref_name
Scope This property is required. string
The job reference name that depends on. Reference to jobs.ref_name
scope This property is required. String
The job reference name that depends on. Reference to jobs.ref_name
scope This property is required. string
The job reference name that depends on. Reference to jobs.ref_name
scope This property is required. str
The job reference name that depends on. Reference to jobs.ref_name
scope This property is required. String
The job reference name that depends on. Reference to jobs.ref_name

GetBuildDefinitionJobTarget

Demands This property is required. List<string>
A list of demands that represents the agent capabilities required by this build. Example: git
ExecutionOptions This property is required. List<Pulumi.AzureDevOps.Inputs.GetBuildDefinitionJobTargetExecutionOption>
A execution_options blocks as documented below.
Type This property is required. string
The execution type of the Job.
Demands This property is required. []string
A list of demands that represents the agent capabilities required by this build. Example: git
ExecutionOptions This property is required. []GetBuildDefinitionJobTargetExecutionOption
A execution_options blocks as documented below.
Type This property is required. string
The execution type of the Job.
demands This property is required. List<String>
A list of demands that represents the agent capabilities required by this build. Example: git
executionOptions This property is required. List<GetBuildDefinitionJobTargetExecutionOption>
A execution_options blocks as documented below.
type This property is required. String
The execution type of the Job.
demands This property is required. string[]
A list of demands that represents the agent capabilities required by this build. Example: git
executionOptions This property is required. GetBuildDefinitionJobTargetExecutionOption[]
A execution_options blocks as documented below.
type This property is required. string
The execution type of the Job.
demands This property is required. Sequence[str]
A list of demands that represents the agent capabilities required by this build. Example: git
execution_options This property is required. Sequence[GetBuildDefinitionJobTargetExecutionOption]
A execution_options blocks as documented below.
type This property is required. str
The execution type of the Job.
demands This property is required. List<String>
A list of demands that represents the agent capabilities required by this build. Example: git
executionOptions This property is required. List<Property Map>
A execution_options blocks as documented below.
type This property is required. String
The execution type of the Job.

GetBuildDefinitionJobTargetExecutionOption

ContinueOnError This property is required. bool
Whether to continue the job when an error occurs.
MaxConcurrency This property is required. int
Limit the number of agents to be used. If job type is AgentlessJob, the concurrency is not configurable and is fixed to 50.
Multipliers This property is required. string
A list of comma separated configuration variables to use. These are defined on the Variables tab. For example, OperatingSystem, Browser will run the tasks for both variables.
Type This property is required. string
The execution type of the Job.
ContinueOnError This property is required. bool
Whether to continue the job when an error occurs.
MaxConcurrency This property is required. int
Limit the number of agents to be used. If job type is AgentlessJob, the concurrency is not configurable and is fixed to 50.
Multipliers This property is required. string
A list of comma separated configuration variables to use. These are defined on the Variables tab. For example, OperatingSystem, Browser will run the tasks for both variables.
Type This property is required. string
The execution type of the Job.
continueOnError This property is required. Boolean
Whether to continue the job when an error occurs.
maxConcurrency This property is required. Integer
Limit the number of agents to be used. If job type is AgentlessJob, the concurrency is not configurable and is fixed to 50.
multipliers This property is required. String
A list of comma separated configuration variables to use. These are defined on the Variables tab. For example, OperatingSystem, Browser will run the tasks for both variables.
type This property is required. String
The execution type of the Job.
continueOnError This property is required. boolean
Whether to continue the job when an error occurs.
maxConcurrency This property is required. number
Limit the number of agents to be used. If job type is AgentlessJob, the concurrency is not configurable and is fixed to 50.
multipliers This property is required. string
A list of comma separated configuration variables to use. These are defined on the Variables tab. For example, OperatingSystem, Browser will run the tasks for both variables.
type This property is required. string
The execution type of the Job.
continue_on_error This property is required. bool
Whether to continue the job when an error occurs.
max_concurrency This property is required. int
Limit the number of agents to be used. If job type is AgentlessJob, the concurrency is not configurable and is fixed to 50.
multipliers This property is required. str
A list of comma separated configuration variables to use. These are defined on the Variables tab. For example, OperatingSystem, Browser will run the tasks for both variables.
type This property is required. str
The execution type of the Job.
continueOnError This property is required. Boolean
Whether to continue the job when an error occurs.
maxConcurrency This property is required. Number
Limit the number of agents to be used. If job type is AgentlessJob, the concurrency is not configurable and is fixed to 50.
multipliers This property is required. String
A list of comma separated configuration variables to use. These are defined on the Variables tab. For example, OperatingSystem, Browser will run the tasks for both variables.
type This property is required. String
The execution type of the Job.

GetBuildDefinitionPullRequestTrigger

CommentRequired This property is required. string
Is a comment required on the PR?
Forks This property is required. List<Pulumi.AzureDevOps.Inputs.GetBuildDefinitionPullRequestTriggerFork>
A forks block as defined above.
InitialBranch This property is required. string
When use_yaml is true set this to the name of the branch that the azure-pipelines.yml exists on.
Overrides This property is required. List<Pulumi.AzureDevOps.Inputs.GetBuildDefinitionPullRequestTriggerOverride>
A override block as defined below.
UseYaml This property is required. bool
Use the azure-pipeline file for the build configuration.
CommentRequired This property is required. string
Is a comment required on the PR?
Forks This property is required. []GetBuildDefinitionPullRequestTriggerFork
A forks block as defined above.
InitialBranch This property is required. string
When use_yaml is true set this to the name of the branch that the azure-pipelines.yml exists on.
Overrides This property is required. []GetBuildDefinitionPullRequestTriggerOverride
A override block as defined below.
UseYaml This property is required. bool
Use the azure-pipeline file for the build configuration.
commentRequired This property is required. String
Is a comment required on the PR?
forks This property is required. List<GetBuildDefinitionPullRequestTriggerFork>
A forks block as defined above.
initialBranch This property is required. String
When use_yaml is true set this to the name of the branch that the azure-pipelines.yml exists on.
overrides This property is required. List<GetBuildDefinitionPullRequestTriggerOverride>
A override block as defined below.
useYaml This property is required. Boolean
Use the azure-pipeline file for the build configuration.
commentRequired This property is required. string
Is a comment required on the PR?
forks This property is required. GetBuildDefinitionPullRequestTriggerFork[]
A forks block as defined above.
initialBranch This property is required. string
When use_yaml is true set this to the name of the branch that the azure-pipelines.yml exists on.
overrides This property is required. GetBuildDefinitionPullRequestTriggerOverride[]
A override block as defined below.
useYaml This property is required. boolean
Use the azure-pipeline file for the build configuration.
comment_required This property is required. str
Is a comment required on the PR?
forks This property is required. Sequence[GetBuildDefinitionPullRequestTriggerFork]
A forks block as defined above.
initial_branch This property is required. str
When use_yaml is true set this to the name of the branch that the azure-pipelines.yml exists on.
overrides This property is required. Sequence[GetBuildDefinitionPullRequestTriggerOverride]
A override block as defined below.
use_yaml This property is required. bool
Use the azure-pipeline file for the build configuration.
commentRequired This property is required. String
Is a comment required on the PR?
forks This property is required. List<Property Map>
A forks block as defined above.
initialBranch This property is required. String
When use_yaml is true set this to the name of the branch that the azure-pipelines.yml exists on.
overrides This property is required. List<Property Map>
A override block as defined below.
useYaml This property is required. Boolean
Use the azure-pipeline file for the build configuration.

GetBuildDefinitionPullRequestTriggerFork

Enabled This property is required. bool
Build pull requests from forks of this repository.
ShareSecrets This property is required. bool
Make secrets available to builds of forks.
Enabled This property is required. bool
Build pull requests from forks of this repository.
ShareSecrets This property is required. bool
Make secrets available to builds of forks.
enabled This property is required. Boolean
Build pull requests from forks of this repository.
shareSecrets This property is required. Boolean
Make secrets available to builds of forks.
enabled This property is required. boolean
Build pull requests from forks of this repository.
shareSecrets This property is required. boolean
Make secrets available to builds of forks.
enabled This property is required. bool
Build pull requests from forks of this repository.
share_secrets This property is required. bool
Make secrets available to builds of forks.
enabled This property is required. Boolean
Build pull requests from forks of this repository.
shareSecrets This property is required. Boolean
Make secrets available to builds of forks.

GetBuildDefinitionPullRequestTriggerOverride

AutoCancel This property is required. bool
Should further updates to a PR cancel an in progress validation?
BranchFilters This property is required. List<Pulumi.AzureDevOps.Inputs.GetBuildDefinitionPullRequestTriggerOverrideBranchFilter>
A branch_filter block as defined above.
PathFilters This property is required. List<Pulumi.AzureDevOps.Inputs.GetBuildDefinitionPullRequestTriggerOverridePathFilter>
The file paths to include or exclude. A path_filter block as defined above.
AutoCancel This property is required. bool
Should further updates to a PR cancel an in progress validation?
BranchFilters This property is required. []GetBuildDefinitionPullRequestTriggerOverrideBranchFilter
A branch_filter block as defined above.
PathFilters This property is required. []GetBuildDefinitionPullRequestTriggerOverridePathFilter
The file paths to include or exclude. A path_filter block as defined above.
autoCancel This property is required. Boolean
Should further updates to a PR cancel an in progress validation?
branchFilters This property is required. List<GetBuildDefinitionPullRequestTriggerOverrideBranchFilter>
A branch_filter block as defined above.
pathFilters This property is required. List<GetBuildDefinitionPullRequestTriggerOverridePathFilter>
The file paths to include or exclude. A path_filter block as defined above.
autoCancel This property is required. boolean
Should further updates to a PR cancel an in progress validation?
branchFilters This property is required. GetBuildDefinitionPullRequestTriggerOverrideBranchFilter[]
A branch_filter block as defined above.
pathFilters This property is required. GetBuildDefinitionPullRequestTriggerOverridePathFilter[]
The file paths to include or exclude. A path_filter block as defined above.
auto_cancel This property is required. bool
Should further updates to a PR cancel an in progress validation?
branch_filters This property is required. Sequence[GetBuildDefinitionPullRequestTriggerOverrideBranchFilter]
A branch_filter block as defined above.
path_filters This property is required. Sequence[GetBuildDefinitionPullRequestTriggerOverridePathFilter]
The file paths to include or exclude. A path_filter block as defined above.
autoCancel This property is required. Boolean
Should further updates to a PR cancel an in progress validation?
branchFilters This property is required. List<Property Map>
A branch_filter block as defined above.
pathFilters This property is required. List<Property Map>
The file paths to include or exclude. A path_filter block as defined above.

GetBuildDefinitionPullRequestTriggerOverrideBranchFilter

Excludes This property is required. List<string>
(Optional) List of path patterns to exclude.
Includes This property is required. List<string>
(Optional) List of path patterns to include.
Excludes This property is required. []string
(Optional) List of path patterns to exclude.
Includes This property is required. []string
(Optional) List of path patterns to include.
excludes This property is required. List<String>
(Optional) List of path patterns to exclude.
includes This property is required. List<String>
(Optional) List of path patterns to include.
excludes This property is required. string[]
(Optional) List of path patterns to exclude.
includes This property is required. string[]
(Optional) List of path patterns to include.
excludes This property is required. Sequence[str]
(Optional) List of path patterns to exclude.
includes This property is required. Sequence[str]
(Optional) List of path patterns to include.
excludes This property is required. List<String>
(Optional) List of path patterns to exclude.
includes This property is required. List<String>
(Optional) List of path patterns to include.

GetBuildDefinitionPullRequestTriggerOverridePathFilter

Excludes This property is required. List<string>
(Optional) List of path patterns to exclude.
Includes This property is required. List<string>
(Optional) List of path patterns to include.
Excludes This property is required. []string
(Optional) List of path patterns to exclude.
Includes This property is required. []string
(Optional) List of path patterns to include.
excludes This property is required. List<String>
(Optional) List of path patterns to exclude.
includes This property is required. List<String>
(Optional) List of path patterns to include.
excludes This property is required. string[]
(Optional) List of path patterns to exclude.
includes This property is required. string[]
(Optional) List of path patterns to include.
excludes This property is required. Sequence[str]
(Optional) List of path patterns to exclude.
includes This property is required. Sequence[str]
(Optional) List of path patterns to include.
excludes This property is required. List<String>
(Optional) List of path patterns to exclude.
includes This property is required. List<String>
(Optional) List of path patterns to include.

GetBuildDefinitionRepository

BranchName This property is required. string
The branch name for which builds are triggered.
GithubEnterpriseUrl This property is required. string
The Github Enterprise URL.
RepoId This property is required. string
The id of the repository.
RepoType This property is required. string
The repository type.
ReportBuildStatus This property is required. bool
Report build status.
ServiceConnectionId This property is required. string
The service connection ID.
Url This property is required. string
YmlPath This property is required. string
The path of the Yaml file describing the build definition.
BranchName This property is required. string
The branch name for which builds are triggered.
GithubEnterpriseUrl This property is required. string
The Github Enterprise URL.
RepoId This property is required. string
The id of the repository.
RepoType This property is required. string
The repository type.
ReportBuildStatus This property is required. bool
Report build status.
ServiceConnectionId This property is required. string
The service connection ID.
Url This property is required. string
YmlPath This property is required. string
The path of the Yaml file describing the build definition.
branchName This property is required. String
The branch name for which builds are triggered.
githubEnterpriseUrl This property is required. String
The Github Enterprise URL.
repoId This property is required. String
The id of the repository.
repoType This property is required. String
The repository type.
reportBuildStatus This property is required. Boolean
Report build status.
serviceConnectionId This property is required. String
The service connection ID.
url This property is required. String
ymlPath This property is required. String
The path of the Yaml file describing the build definition.
branchName This property is required. string
The branch name for which builds are triggered.
githubEnterpriseUrl This property is required. string
The Github Enterprise URL.
repoId This property is required. string
The id of the repository.
repoType This property is required. string
The repository type.
reportBuildStatus This property is required. boolean
Report build status.
serviceConnectionId This property is required. string
The service connection ID.
url This property is required. string
ymlPath This property is required. string
The path of the Yaml file describing the build definition.
branch_name This property is required. str
The branch name for which builds are triggered.
github_enterprise_url This property is required. str
The Github Enterprise URL.
repo_id This property is required. str
The id of the repository.
repo_type This property is required. str
The repository type.
report_build_status This property is required. bool
Report build status.
service_connection_id This property is required. str
The service connection ID.
url This property is required. str
yml_path This property is required. str
The path of the Yaml file describing the build definition.
branchName This property is required. String
The branch name for which builds are triggered.
githubEnterpriseUrl This property is required. String
The Github Enterprise URL.
repoId This property is required. String
The id of the repository.
repoType This property is required. String
The repository type.
reportBuildStatus This property is required. Boolean
Report build status.
serviceConnectionId This property is required. String
The service connection ID.
url This property is required. String
ymlPath This property is required. String
The path of the Yaml file describing the build definition.

GetBuildDefinitionSchedule

BranchFilters This property is required. List<Pulumi.AzureDevOps.Inputs.GetBuildDefinitionScheduleBranchFilter>
A branch_filter block as defined above.
DaysToBuilds This property is required. List<string>
A list of days to build on.
ScheduleJobId This property is required. string
The ID of the schedule job.
ScheduleOnlyWithChanges This property is required. bool
Schedule builds if the source or pipeline has changed.
StartHours This property is required. int
Build start hour.
StartMinutes This property is required. int
Build start minute.
TimeZone This property is required. string
Build time zone.
BranchFilters This property is required. []GetBuildDefinitionScheduleBranchFilter
A branch_filter block as defined above.
DaysToBuilds This property is required. []string
A list of days to build on.
ScheduleJobId This property is required. string
The ID of the schedule job.
ScheduleOnlyWithChanges This property is required. bool
Schedule builds if the source or pipeline has changed.
StartHours This property is required. int
Build start hour.
StartMinutes This property is required. int
Build start minute.
TimeZone This property is required. string
Build time zone.
branchFilters This property is required. List<GetBuildDefinitionScheduleBranchFilter>
A branch_filter block as defined above.
daysToBuilds This property is required. List<String>
A list of days to build on.
scheduleJobId This property is required. String
The ID of the schedule job.
scheduleOnlyWithChanges This property is required. Boolean
Schedule builds if the source or pipeline has changed.
startHours This property is required. Integer
Build start hour.
startMinutes This property is required. Integer
Build start minute.
timeZone This property is required. String
Build time zone.
branchFilters This property is required. GetBuildDefinitionScheduleBranchFilter[]
A branch_filter block as defined above.
daysToBuilds This property is required. string[]
A list of days to build on.
scheduleJobId This property is required. string
The ID of the schedule job.
scheduleOnlyWithChanges This property is required. boolean
Schedule builds if the source or pipeline has changed.
startHours This property is required. number
Build start hour.
startMinutes This property is required. number
Build start minute.
timeZone This property is required. string
Build time zone.
branch_filters This property is required. Sequence[GetBuildDefinitionScheduleBranchFilter]
A branch_filter block as defined above.
days_to_builds This property is required. Sequence[str]
A list of days to build on.
schedule_job_id This property is required. str
The ID of the schedule job.
schedule_only_with_changes This property is required. bool
Schedule builds if the source or pipeline has changed.
start_hours This property is required. int
Build start hour.
start_minutes This property is required. int
Build start minute.
time_zone This property is required. str
Build time zone.
branchFilters This property is required. List<Property Map>
A branch_filter block as defined above.
daysToBuilds This property is required. List<String>
A list of days to build on.
scheduleJobId This property is required. String
The ID of the schedule job.
scheduleOnlyWithChanges This property is required. Boolean
Schedule builds if the source or pipeline has changed.
startHours This property is required. Number
Build start hour.
startMinutes This property is required. Number
Build start minute.
timeZone This property is required. String
Build time zone.

GetBuildDefinitionScheduleBranchFilter

Excludes This property is required. List<string>
(Optional) List of path patterns to exclude.
Includes This property is required. List<string>
(Optional) List of path patterns to include.
Excludes This property is required. []string
(Optional) List of path patterns to exclude.
Includes This property is required. []string
(Optional) List of path patterns to include.
excludes This property is required. List<String>
(Optional) List of path patterns to exclude.
includes This property is required. List<String>
(Optional) List of path patterns to include.
excludes This property is required. string[]
(Optional) List of path patterns to exclude.
includes This property is required. string[]
(Optional) List of path patterns to include.
excludes This property is required. Sequence[str]
(Optional) List of path patterns to exclude.
includes This property is required. Sequence[str]
(Optional) List of path patterns to include.
excludes This property is required. List<String>
(Optional) List of path patterns to exclude.
includes This property is required. List<String>
(Optional) List of path patterns to include.

GetBuildDefinitionVariable

AllowOverride This property is required. bool
true if the variable can be overridden.
IsSecret This property is required. bool
true if the variable is a secret.
Name This property is required. string
The name of this Build Definition.
SecretValue This property is required. string
The secret value of the variable.
Value This property is required. string
The value of the variable.
AllowOverride This property is required. bool
true if the variable can be overridden.
IsSecret This property is required. bool
true if the variable is a secret.
Name This property is required. string
The name of this Build Definition.
SecretValue This property is required. string
The secret value of the variable.
Value This property is required. string
The value of the variable.
allowOverride This property is required. Boolean
true if the variable can be overridden.
isSecret This property is required. Boolean
true if the variable is a secret.
name This property is required. String
The name of this Build Definition.
secretValue This property is required. String
The secret value of the variable.
value This property is required. String
The value of the variable.
allowOverride This property is required. boolean
true if the variable can be overridden.
isSecret This property is required. boolean
true if the variable is a secret.
name This property is required. string
The name of this Build Definition.
secretValue This property is required. string
The secret value of the variable.
value This property is required. string
The value of the variable.
allow_override This property is required. bool
true if the variable can be overridden.
is_secret This property is required. bool
true if the variable is a secret.
name This property is required. str
The name of this Build Definition.
secret_value This property is required. str
The secret value of the variable.
value This property is required. str
The value of the variable.
allowOverride This property is required. Boolean
true if the variable can be overridden.
isSecret This property is required. Boolean
true if the variable is a secret.
name This property is required. String
The name of this Build Definition.
secretValue This property is required. String
The secret value of the variable.
value This property is required. String
The value of the variable.

Package Details

Repository
Azure DevOps pulumi/pulumi-azuredevops
License
Apache-2.0
Notes
This Pulumi package is based on the azuredevops Terraform Provider.