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);
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)
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
})
}
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),
};
});
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()));
}
}
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}
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>
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]
func LookupBuildDefinition(ctx *Context, args *LookupBuildDefinitionArgs, opts ...InvokeOption) (*LookupBuildDefinitionResult, error)
func LookupBuildDefinitionOutput(ctx *Context, args *LookupBuildDefinitionOutputArgs, opts ...InvokeOption) LookupBuildDefinitionResultOutput
> 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)
}
public static CompletableFuture<GetBuildDefinitionResult> getBuildDefinition(GetBuildDefinitionArgs args, InvokeOptions options)
public static Output<GetBuildDefinitionResult> getBuildDefinition(GetBuildDefinitionArgs args, InvokeOptions options)
fn::invoke:
function: azuredevops:index/getBuildDefinition:getBuildDefinition
arguments:
# arguments dictionary
The following arguments are supported:
- 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
\
.
getBuildDefinition Result
The following output properties are available:
- Agent
Pool stringName - The agent pool that should execute the build.
- Agent
Specification string - The Agent Specification to run the pipelines. Example:
windows-2019
,windows-latest
,macos-13
etc. - Ci
Triggers List<Pulumi.Azure Dev Ops. Outputs. Get Build Definition Ci Trigger> - A
ci_trigger
block as defined below. - Id string
- The provider-assigned unique ID for this managed resource.
- string
- The job authorization scope for builds queued against this definition.
- Jobs
List<Pulumi.
Azure Dev Ops. Outputs. Get Build Definition Job> - A
jobs
blocks as documented below. - Name string
- The name of the variable.
- Project
Id string - Pull
Request List<Pulumi.Triggers Azure Dev Ops. Outputs. Get Build Definition Pull Request Trigger> - A
pull_request_trigger
block as defined below. - Queue
Status string - The queue status of the build definition.
- Repositories
List<Pulumi.
Azure Dev Ops. Outputs. Get Build Definition Repository> - A
repository
block as defined below. - Revision int
- The revision of the build definition.
- Schedules
List<Pulumi.
Azure Dev Ops. Outputs. Get Build Definition Schedule> - A
schedules
block as defined below. - Variable
Groups List<int> - A list of variable group IDs.
- Variables
List<Pulumi.
Azure Dev Ops. Outputs. Get Build Definition Variable> - A
variable
block as defined below. - Path string
- Agent
Pool stringName - The agent pool that should execute the build.
- Agent
Specification string - The Agent Specification to run the pipelines. Example:
windows-2019
,windows-latest
,macos-13
etc. - Ci
Triggers []GetBuild Definition Ci Trigger - A
ci_trigger
block as defined below. - Id string
- The provider-assigned unique ID for this managed resource.
- string
- The job authorization scope for builds queued against this definition.
- Jobs
[]Get
Build Definition Job - A
jobs
blocks as documented below. - Name string
- The name of the variable.
- Project
Id string - Pull
Request []GetTriggers Build Definition Pull Request Trigger - A
pull_request_trigger
block as defined below. - Queue
Status string - The queue status of the build definition.
- Repositories
[]Get
Build Definition Repository - A
repository
block as defined below. - Revision int
- The revision of the build definition.
- Schedules
[]Get
Build Definition Schedule - A
schedules
block as defined below. - Variable
Groups []int - A list of variable group IDs.
- Variables
[]Get
Build Definition Variable - A
variable
block as defined below. - Path string
- agent
Pool StringName - The agent pool that should execute the build.
- agent
Specification String - The Agent Specification to run the pipelines. Example:
windows-2019
,windows-latest
,macos-13
etc. - ci
Triggers List<GetBuild Definition Ci Trigger> - A
ci_trigger
block as defined below. - id String
- The provider-assigned unique ID for this managed resource.
- String
- The job authorization scope for builds queued against this definition.
- jobs
List<Get
Build Definition Job> - A
jobs
blocks as documented below. - name String
- The name of the variable.
- project
Id String - pull
Request List<GetTriggers Build Definition Pull Request Trigger> - A
pull_request_trigger
block as defined below. - queue
Status String - The queue status of the build definition.
- repositories
List<Get
Build Definition Repository> - A
repository
block as defined below. - revision Integer
- The revision of the build definition.
- schedules
List<Get
Build Definition Schedule> - A
schedules
block as defined below. - variable
Groups List<Integer> - A list of variable group IDs.
- variables
List<Get
Build Definition Variable> - A
variable
block as defined below. - path String
- agent
Pool stringName - The agent pool that should execute the build.
- agent
Specification string - The Agent Specification to run the pipelines. Example:
windows-2019
,windows-latest
,macos-13
etc. - ci
Triggers GetBuild Definition Ci Trigger[] - A
ci_trigger
block as defined below. - id string
- The provider-assigned unique ID for this managed resource.
- string
- The job authorization scope for builds queued against this definition.
- jobs
Get
Build Definition Job[] - A
jobs
blocks as documented below. - name string
- The name of the variable.
- project
Id string - pull
Request GetTriggers Build Definition Pull Request Trigger[] - A
pull_request_trigger
block as defined below. - queue
Status string - The queue status of the build definition.
- repositories
Get
Build Definition Repository[] - A
repository
block as defined below. - revision number
- The revision of the build definition.
- schedules
Get
Build Definition Schedule[] - A
schedules
block as defined below. - variable
Groups number[] - A list of variable group IDs.
- variables
Get
Build Definition Variable[] - A
variable
block as defined below. - path string
- agent_
pool_ strname - 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[GetBuild Definition Ci Trigger] - A
ci_trigger
block as defined below. - id str
- The provider-assigned unique ID for this managed resource.
- str
- The job authorization scope for builds queued against this definition.
- jobs
Sequence[Get
Build Definition Job] - A
jobs
blocks as documented below. - name str
- The name of the variable.
- project_
id str - pull_
request_ Sequence[Gettriggers Build Definition Pull Request Trigger] - A
pull_request_trigger
block as defined below. - queue_
status str - The queue status of the build definition.
- repositories
Sequence[Get
Build Definition Repository] - A
repository
block as defined below. - revision int
- The revision of the build definition.
- schedules
Sequence[Get
Build Definition Schedule] - A
schedules
block as defined below. - variable_
groups Sequence[int] - A list of variable group IDs.
- variables
Sequence[Get
Build Definition Variable] - A
variable
block as defined below. - path str
- agent
Pool StringName - The agent pool that should execute the build.
- agent
Specification String - The Agent Specification to run the pipelines. Example:
windows-2019
,windows-latest
,macos-13
etc. - ci
Triggers List<Property Map> - A
ci_trigger
block as defined below. - id String
- The provider-assigned unique ID for this managed resource.
- 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.
- project
Id String - pull
Request List<Property Map>Triggers - A
pull_request_trigger
block as defined below. - queue
Status 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. - variable
Groups 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.Azure Dev Ops. Inputs. Get Build Definition Ci Trigger Override> - 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. []GetBuild Definition Ci Trigger Override - 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<GetBuild Definition Ci Trigger Override> - A
override
block as defined below. - use
Yaml This property is required. Boolean - Use the azure-pipeline file for the build configuration.
- overrides
This property is required. GetBuild Definition Ci Trigger Override[] - A
override
block as defined below. - use
Yaml This property is required. boolean - Use the azure-pipeline file for the build configuration.
- overrides
This property is required. Sequence[GetBuild Definition Ci Trigger Override] - 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. - use
Yaml 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.
- Branch
Filters This property is required. List<Pulumi.Azure Dev Ops. Inputs. Get Build Definition Ci Trigger Override Branch Filter> - 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. List<Pulumi.Azure Dev Ops. Inputs. Get Build Definition Ci Trigger Override Path Filter> - 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. 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. []GetBuild Definition Ci Trigger Override Branch Filter - 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. []GetBuild Definition Ci Trigger Override Path Filter - 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. 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.
- branch
Filters This property is required. List<GetBuild Definition Ci Trigger Override Branch Filter> - A
branch_filter
block as defined above. - max
Concurrent Builds Per Branch This property is required. Integer - The number of max builds per branch.
- path
Filters This property is required. List<GetBuild Definition Ci Trigger Override Path Filter> - The file paths to include or exclude. A
path_filter
block as defined above. - polling
Interval This property is required. Integer - How often the external repository is polled.
- polling
Job Id 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.
- branch
Filters This property is required. GetBuild Definition Ci Trigger Override Branch Filter[] - A
branch_filter
block as defined above. - max
Concurrent Builds Per Branch This property is required. number - The number of max builds per branch.
- path
Filters This property is required. GetBuild Definition Ci Trigger Override Path Filter[] - The file paths to include or exclude. A
path_filter
block as defined above. - polling
Interval This property is required. number - How often the external repository is polled.
- polling
Job Id 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[GetBuild Definition Ci Trigger Override Branch Filter] - 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[GetBuild Definition Ci Trigger Override Path Filter] - 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.
- branch
Filters This property is required. List<Property Map> - A
branch_filter
block as defined above. - max
Concurrent Builds Per Branch This property is required. Number - The number of max builds per branch.
- path
Filters This property is required. List<Property Map> - The file paths to include or exclude. A
path_filter
block as defined above. - polling
Interval This property is required. Number - How often the external repository is polled.
- polling
Job Id 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
GetBuildDefinitionCiTriggerOverridePathFilter
GetBuildDefinitionJob
- 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. 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.Azure Dev Ops. Inputs. Get Build Definition Job Dependency> - A
dependencies
blocks as documented below. Define the job dependencies. This property is required. string- 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. string - The name of this Build Definition.
- Ref
Name 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.Azure Dev Ops. Inputs. Get Build Definition Job Target> - 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. string - Specifies when this job should run. Can Custom conditions to specify more complex conditions. More details: Pipeline conditions
- Dependencies
This property is required. []GetBuild Definition Job Dependency - A
dependencies
blocks as documented below. Define the job dependencies. This property is required. string- 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. string - The name of this Build Definition.
- Ref
Name This property is required. string - The reference name of the job, can be used to define the job dependencies.
- Targets
This property is required. []GetBuild Definition Job Target - A
target
blocks as documented below.
- allow
Scripts Auth Access Option 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<GetBuild Definition Job Dependency> - A
dependencies
blocks as documented below. Define the job dependencies. This property is required. String- The job authorization scope for builds queued against this definition.
- job
Cancel Timeout In Minutes This property is required. Integer - The job cancel timeout (in minutes) for builds cancelled by user for this definition.
- job
Timeout In Minutes 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.
- ref
Name 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<GetBuild Definition Job Target> - A
target
blocks as documented below.
- allow
Scripts Auth Access Option 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. GetBuild Definition Job Dependency[] - A
dependencies
blocks as documented below. Define the job dependencies. This property is required. string- The job authorization scope for builds queued against this definition.
- job
Cancel Timeout In Minutes This property is required. number - The job cancel timeout (in minutes) for builds cancelled by user for this definition.
- job
Timeout In Minutes 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.
- ref
Name This property is required. string - The reference name of the job, can be used to define the job dependencies.
- targets
This property is required. GetBuild Definition Job Target[] - 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[GetBuild Definition Job Dependency] - A
dependencies
blocks as documented below. Define the job dependencies. 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[GetBuild Definition Job Target] - A
target
blocks as documented below.
- allow
Scripts Auth Access Option 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. This property is required. String- The job authorization scope for builds queued against this definition.
- job
Cancel Timeout In Minutes This property is required. Number - The job cancel timeout (in minutes) for builds cancelled by user for this definition.
- job
Timeout In Minutes 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.
- ref
Name 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
- Execution
Options This property is required. List<Pulumi.Azure Dev Ops. Inputs. Get Build Definition Job Target Execution Option> - 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
- Execution
Options This property is required. []GetBuild Definition Job Target Execution Option - 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
- execution
Options This property is required. List<GetBuild Definition Job Target Execution Option> - 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
- execution
Options This property is required. GetBuild Definition Job Target Execution Option[] - 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[GetBuild Definition Job Target Execution Option] - 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
- execution
Options 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
- 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. 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. 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. Boolean - Whether to continue the job when an error occurs.
- max
Concurrency 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.
- continue
On Error This property is required. boolean - Whether to continue the job when an error occurs.
- max
Concurrency 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.
- continue
On Error This property is required. Boolean - Whether to continue the job when an error occurs.
- max
Concurrency 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
- Comment
Required This property is required. string - Is a comment required on the PR?
- Forks
This property is required. List<Pulumi.Azure Dev Ops. Inputs. Get Build Definition Pull Request Trigger Fork> - A
forks
block as defined above. - Initial
Branch 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.Azure Dev Ops. Inputs. Get Build Definition Pull Request Trigger Override> - A
override
block as defined below. - Use
Yaml This property is required. bool - Use the azure-pipeline file for the build configuration.
- Comment
Required This property is required. string - Is a comment required on the PR?
- Forks
This property is required. []GetBuild Definition Pull Request Trigger Fork - A
forks
block as defined above. - Initial
Branch 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. []GetBuild Definition Pull Request Trigger Override - A
override
block as defined below. - Use
Yaml This property is required. bool - Use the azure-pipeline file for the build configuration.
- comment
Required This property is required. String - Is a comment required on the PR?
- forks
This property is required. List<GetBuild Definition Pull Request Trigger Fork> - A
forks
block as defined above. - initial
Branch 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<GetBuild Definition Pull Request Trigger Override> - A
override
block as defined below. - use
Yaml This property is required. Boolean - Use the azure-pipeline file for the build configuration.
- comment
Required This property is required. string - Is a comment required on the PR?
- forks
This property is required. GetBuild Definition Pull Request Trigger Fork[] - A
forks
block as defined above. - initial
Branch 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. GetBuild Definition Pull Request Trigger Override[] - A
override
block as defined below. - use
Yaml 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[GetBuild Definition Pull Request Trigger Fork] - 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[GetBuild Definition Pull Request Trigger Override] - A
override
block as defined below. - use_
yaml This property is required. bool - Use the azure-pipeline file for the build configuration.
- comment
Required 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. - initial
Branch 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. - use
Yaml 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.
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.
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.
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.
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.
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.
This property is required. Boolean- Make secrets available to builds of forks.
GetBuildDefinitionPullRequestTriggerOverride
- Auto
Cancel This property is required. bool - Should further updates to a PR cancel an in progress validation?
- Branch
Filters This property is required. List<Pulumi.Azure Dev Ops. Inputs. Get Build Definition Pull Request Trigger Override Branch Filter> - A
branch_filter
block as defined above. - Path
Filters This property is required. List<Pulumi.Azure Dev Ops. Inputs. Get Build Definition Pull Request Trigger Override Path Filter> - 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. []GetBuild Definition Pull Request Trigger Override Branch Filter - A
branch_filter
block as defined above. - Path
Filters This property is required. []GetBuild Definition Pull Request Trigger Override Path Filter - The file paths to include or exclude. A
path_filter
block as defined above.
- auto
Cancel This property is required. Boolean - Should further updates to a PR cancel an in progress validation?
- branch
Filters This property is required. List<GetBuild Definition Pull Request Trigger Override Branch Filter> - A
branch_filter
block as defined above. - path
Filters This property is required. List<GetBuild Definition Pull Request Trigger Override Path Filter> - The file paths to include or exclude. A
path_filter
block as defined above.
- auto
Cancel This property is required. boolean - Should further updates to a PR cancel an in progress validation?
- branch
Filters This property is required. GetBuild Definition Pull Request Trigger Override Branch Filter[] - A
branch_filter
block as defined above. - path
Filters This property is required. GetBuild Definition Pull Request Trigger Override Path Filter[] - 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[GetBuild Definition Pull Request Trigger Override Branch Filter] - A
branch_filter
block as defined above. - path_
filters This property is required. Sequence[GetBuild Definition Pull Request Trigger Override Path Filter] - The file paths to include or exclude. A
path_filter
block as defined above.
- auto
Cancel This property is required. Boolean - Should further updates to a PR cancel an in progress validation?
- branch
Filters This property is required. List<Property Map> - A
branch_filter
block as defined above. - path
Filters This property is required. List<Property Map> - The file paths to include or exclude. A
path_filter
block as defined above.
GetBuildDefinitionPullRequestTriggerOverrideBranchFilter
GetBuildDefinitionPullRequestTriggerOverridePathFilter
GetBuildDefinitionRepository
- Branch
Name This property is required. string - The branch name for which builds are triggered.
- Github
Enterprise Url This property is required. string - The Github Enterprise URL.
- Repo
Id This property is required. string - The id of the repository.
- Repo
Type This property is required. string - The repository type.
- Report
Build Status This property is required. bool - Report build status.
- Service
Connection Id This property is required. string - The service connection ID.
- Url
This property is required. string - Yml
Path This property is required. string - The path of the Yaml file describing the build definition.
- Branch
Name This property is required. string - The branch name for which builds are triggered.
- Github
Enterprise Url This property is required. string - The Github Enterprise URL.
- Repo
Id This property is required. string - The id of the repository.
- Repo
Type This property is required. string - The repository type.
- Report
Build Status This property is required. bool - Report build status.
- Service
Connection Id This property is required. string - The service connection ID.
- Url
This property is required. string - Yml
Path This property is required. string - The path of the Yaml file describing the build definition.
- branch
Name This property is required. String - The branch name for which builds are triggered.
- github
Enterprise Url This property is required. String - The Github Enterprise URL.
- repo
Id This property is required. String - The id of the repository.
- repo
Type This property is required. String - The repository type.
- report
Build Status This property is required. Boolean - Report build status.
- service
Connection Id This property is required. String - The service connection ID.
- url
This property is required. String - yml
Path This property is required. String - The path of the Yaml file describing the build definition.
- branch
Name This property is required. string - The branch name for which builds are triggered.
- github
Enterprise Url This property is required. string - The Github Enterprise URL.
- repo
Id This property is required. string - The id of the repository.
- repo
Type This property is required. string - The repository type.
- report
Build Status This property is required. boolean - Report build status.
- service
Connection Id This property is required. string - The service connection ID.
- url
This property is required. string - yml
Path 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.
- branch
Name This property is required. String - The branch name for which builds are triggered.
- github
Enterprise Url This property is required. String - The Github Enterprise URL.
- repo
Id This property is required. String - The id of the repository.
- repo
Type This property is required. String - The repository type.
- report
Build Status This property is required. Boolean - Report build status.
- service
Connection Id This property is required. String - The service connection ID.
- url
This property is required. String - yml
Path This property is required. String - The path of the Yaml file describing the build definition.
GetBuildDefinitionSchedule
- Branch
Filters This property is required. List<Pulumi.Azure Dev Ops. Inputs. Get Build Definition Schedule Branch Filter> - A
branch_filter
block as defined above. - Days
To Builds This property is required. List<string> - A list of days to build on.
- Schedule
Job Id This property is required. string - 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. string - Build time zone.
- Branch
Filters This property is required. []GetBuild Definition Schedule Branch Filter - A
branch_filter
block as defined above. - Days
To Builds This property is required. []string - A list of days to build on.
- Schedule
Job Id This property is required. string - 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. string - Build time zone.
- branch
Filters This property is required. List<GetBuild Definition Schedule Branch Filter> - A
branch_filter
block as defined above. - days
To Builds This property is required. List<String> - A list of days to build on.
- schedule
Job Id This property is required. String - The ID of the schedule job.
- schedule
Only With Changes This property is required. Boolean - Schedule builds if the source or pipeline has changed.
- start
Hours This property is required. Integer - Build start hour.
- start
Minutes This property is required. Integer - Build start minute.
- time
Zone This property is required. String - Build time zone.
- branch
Filters This property is required. GetBuild Definition Schedule Branch Filter[] - A
branch_filter
block as defined above. - days
To Builds This property is required. string[] - A list of days to build on.
- schedule
Job Id This property is required. string - The ID of the schedule job.
- schedule
Only With Changes This property is required. boolean - Schedule builds if the source or pipeline has changed.
- start
Hours This property is required. number - Build start hour.
- start
Minutes This property is required. number - Build start minute.
- time
Zone This property is required. string - Build time zone.
- branch_
filters This property is required. Sequence[GetBuild Definition Schedule Branch Filter] - 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.
- branch
Filters This property is required. List<Property Map> - A
branch_filter
block as defined above. - days
To Builds This property is required. List<String> - A list of days to build on.
- schedule
Job Id This property is required. String - The ID of the schedule job.
- schedule
Only With Changes This property is required. Boolean - Schedule builds if the source or pipeline has changed.
- start
Hours This property is required. Number - Build start hour.
- start
Minutes This property is required. Number - Build start minute.
- time
Zone This property is required. String - Build time zone.
GetBuildDefinitionScheduleBranchFilter
GetBuildDefinitionVariable
- 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. string - The name of this Build Definition.
- Secret
Value 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. string - The name of this Build Definition.
- Secret
Value 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. Boolean true
if the variable can be overridden.- is
Secret This property is required. Boolean true
if the variable is a secret.- name
This property is required. String - The name of this Build Definition.
- secret
Value 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. boolean true
if the variable can be overridden.- is
Secret This property is required. boolean true
if the variable is a secret.- name
This property is required. string - The name of this Build Definition.
- secret
Value 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.
- allow
Override This property is required. Boolean true
if the variable can be overridden.- is
Secret This property is required. Boolean true
if the variable is a secret.- name
This property is required. String - The name of this Build Definition.
- secret
Value 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.