AzureDevOps
Pulumi Official

Package maintained by Pulumiv2.4.0 published on Friday, Apr 22, 2022 by Pulumi
BuildDefinition
Deprecated:
azuredevops.build.BuildDefinition has been deprecated in favor of azuredevops.BuildDefinition
Create a BuildDefinition Resource
new BuildDefinition(name: string, args: BuildDefinitionArgs, opts?: CustomResourceOptions);
@overload
def BuildDefinition(resource_name: str,
opts: Optional[ResourceOptions] = None,
agent_pool_name: Optional[str] = None,
ci_trigger: Optional[_build.BuildDefinitionCiTriggerArgs] = None,
name: Optional[str] = None,
path: Optional[str] = None,
project_id: Optional[str] = None,
pull_request_trigger: Optional[_build.BuildDefinitionPullRequestTriggerArgs] = None,
repository: Optional[_build.BuildDefinitionRepositoryArgs] = None,
schedules: Optional[Sequence[_build.BuildDefinitionScheduleArgs]] = None,
variable_groups: Optional[Sequence[int]] = None,
variables: Optional[Sequence[_build.BuildDefinitionVariableArgs]] = None)
@overload
def BuildDefinition(resource_name: str,
args: BuildDefinitionArgs,
opts: Optional[ResourceOptions] = None)
func NewBuildDefinition(ctx *Context, name string, args BuildDefinitionArgs, opts ...ResourceOption) (*BuildDefinition, error)
public BuildDefinition(string name, BuildDefinitionArgs args, CustomResourceOptions? opts = null)
public BuildDefinition(String name, BuildDefinitionArgs args)
public BuildDefinition(String name, BuildDefinitionArgs args, CustomResourceOptions options)
type: azuredevops:Build:BuildDefinition
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BuildDefinitionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args BuildDefinitionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args BuildDefinitionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BuildDefinitionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BuildDefinitionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
BuildDefinition Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The BuildDefinition resource accepts the following input properties:
- Project
Id string - Repository
Pulumi.
Azure Dev Ops. Build. Inputs. Build Definition Repository Args - Agent
Pool stringName - Ci
Trigger Pulumi.Azure Dev Ops. Build. Inputs. Build Definition Ci Trigger Args - Name string
- Path string
- Pull
Request Pulumi.Trigger Azure Dev Ops. Build. Inputs. Build Definition Pull Request Trigger Args - Schedules
List<Pulumi.
Azure Dev Ops. Build. Inputs. Build Definition Schedule Args> - Variable
Groups List<int> - Variables
List<Pulumi.
Azure Dev Ops. Build. Inputs. Build Definition Variable Args>
- project
Id String - repository Property Map
- agent
Pool StringName - ci
Trigger Property Map - name String
- path String
- pull
Request Property MapTrigger - schedules List<Property Map>
- variable
Groups List<Number> - variables List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the BuildDefinition resource produces the following output properties:
Look up an Existing BuildDefinition Resource
Get an existing BuildDefinition resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: BuildDefinitionState, opts?: CustomResourceOptions): BuildDefinition
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
agent_pool_name: Optional[str] = None,
ci_trigger: Optional[_build.BuildDefinitionCiTriggerArgs] = None,
name: Optional[str] = None,
path: Optional[str] = None,
project_id: Optional[str] = None,
pull_request_trigger: Optional[_build.BuildDefinitionPullRequestTriggerArgs] = None,
repository: Optional[_build.BuildDefinitionRepositoryArgs] = None,
revision: Optional[int] = None,
schedules: Optional[Sequence[_build.BuildDefinitionScheduleArgs]] = None,
variable_groups: Optional[Sequence[int]] = None,
variables: Optional[Sequence[_build.BuildDefinitionVariableArgs]] = None) -> BuildDefinition
func GetBuildDefinition(ctx *Context, name string, id IDInput, state *BuildDefinitionState, opts ...ResourceOption) (*BuildDefinition, error)
public static BuildDefinition Get(string name, Input<string> id, BuildDefinitionState? state, CustomResourceOptions? opts = null)
public static BuildDefinition get(String name, Output<String> id, BuildDefinitionState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Agent
Pool stringName - Ci
Trigger Pulumi.Azure Dev Ops. Build. Inputs. Build Definition Ci Trigger Args - Name string
- Path string
- Project
Id string - Pull
Request Pulumi.Trigger Azure Dev Ops. Build. Inputs. Build Definition Pull Request Trigger Args - Repository
Pulumi.
Azure Dev Ops. Build. Inputs. Build Definition Repository Args - Revision int
- Schedules
List<Pulumi.
Azure Dev Ops. Build. Inputs. Build Definition Schedule Args> - Variable
Groups List<int> - Variables
List<Pulumi.
Azure Dev Ops. Build. Inputs. Build Definition Variable Args>
- Agent
Pool stringName - Ci
Trigger BuildDefinition Ci Trigger Args - Name string
- Path string
- Project
Id string - Pull
Request BuildTrigger Definition Pull Request Trigger Args - Repository
Build
Definition Repository Args - Revision int
- Schedules
[]Build
Definition Schedule Args - Variable
Groups []int - Variables
[]Build
Definition Variable Args
- agent
Pool stringName - ci
Trigger BuildDefinition Ci Trigger Args - name string
- path string
- project
Id string - pull
Request BuildTrigger Definition Pull Request Trigger Args - repository
Build
Definition Repository Args - revision number
- schedules
Build
Definition Schedule Args[] - variable
Groups number[] - variables
Build
Definition Variable Args[]
- agent_
pool_ strname - ci_
trigger BuildDefinition Ci Trigger Args - name str
- path str
- project_
id str - pull_
request_ Buildtrigger Definition Pull Request Trigger Args - repository
Build
Definition Repository Args - revision int
- schedules
Build
Definition Schedule Args] - variable_
groups Sequence[int] - variables
Build
Definition Variable Args]
- agent
Pool StringName - ci
Trigger Property Map - name String
- path String
- project
Id String - pull
Request Property MapTrigger - repository Property Map
- revision Number
- schedules List<Property Map>
- variable
Groups List<Number> - variables List<Property Map>
Supporting Types
BuildDefinitionCiTrigger
- override Property Map
- use
Yaml Boolean
BuildDefinitionCiTriggerOverride
- batch Boolean
- branch
Filters List<Property Map> - max
Concurrent NumberBuilds Per Branch - path
Filters List<Property Map> - polling
Interval Number - polling
Job StringId
BuildDefinitionCiTriggerOverrideBranchFilter
BuildDefinitionCiTriggerOverridePathFilter
BuildDefinitionPullRequestTrigger
- forks Property Map
- comment
Required String - initial
Branch String - override Property Map
- use
Yaml Boolean
BuildDefinitionPullRequestTriggerForks
- Enabled bool
- bool
- Enabled bool
- bool
- enabled Boolean
- Boolean
- enabled boolean
- boolean
- enabled bool
- bool
- enabled Boolean
- Boolean
BuildDefinitionPullRequestTriggerOverride
BuildDefinitionPullRequestTriggerOverrideBranchFilter
BuildDefinitionPullRequestTriggerOverridePathFilter
BuildDefinitionRepository
- Repo
Id string - Repo
Type string - Yml
Path string - Branch
Name string - Github
Enterprise stringUrl - Report
Build boolStatus - Service
Connection stringId
- Repo
Id string - Repo
Type string - Yml
Path string - Branch
Name string - Github
Enterprise stringUrl - Report
Build boolStatus - Service
Connection stringId
- repo
Id String - repo
Type String - yml
Path String - branch
Name String - github
Enterprise StringUrl - report
Build BooleanStatus - service
Connection StringId
- repo
Id string - repo
Type string - yml
Path string - branch
Name string - github
Enterprise stringUrl - report
Build booleanStatus - service
Connection stringId
- repo_
id str - repo_
type str - yml_
path str - branch_
name str - github_
enterprise_ strurl - report_
build_ boolstatus - service_
connection_ strid
- repo
Id String - repo
Type String - yml
Path String - branch
Name String - github
Enterprise StringUrl - report
Build BooleanStatus - service
Connection StringId
BuildDefinitionSchedule
- Days
To List<string>Builds - Branch
Filters List<Pulumi.Azure Dev Ops. Build. Inputs. Build Definition Schedule Branch Filter> - Schedule
Job stringId - Schedule
Only boolWith Changes - Start
Hours int - Start
Minutes int - Time
Zone string
- Days
To []stringBuilds - Branch
Filters []BuildDefinition Schedule Branch Filter - Schedule
Job stringId - Schedule
Only boolWith Changes - Start
Hours int - Start
Minutes int - Time
Zone string
- days
To List<String>Builds - branch
Filters List<DefinitionSchedule Branch Filter> - schedule
Job StringId - schedule
Only BooleanWith Changes - start
Hours Integer - start
Minutes Integer - time
Zone String
- days
To string[]Builds - branch
Filters BuildDefinition Schedule Branch Filter[] - schedule
Job stringId - schedule
Only booleanWith Changes - start
Hours number - start
Minutes number - time
Zone string
- days_
to_ Sequence[str]builds - branch_
filters BuildDefinition Schedule Branch Filter] - schedule_
job_ strid - schedule_
only_ boolwith_ changes - start_
hours int - start_
minutes int - time_
zone str
- days
To List<String>Builds - branch
Filters List<Property Map> - schedule
Job StringId - schedule
Only BooleanWith Changes - start
Hours Number - start
Minutes Number - time
Zone String
BuildDefinitionScheduleBranchFilter
BuildDefinitionVariable
- Name string
- Allow
Override bool - Is
Secret bool - Secret
Value string - Value string
- Name string
- Allow
Override bool - Is
Secret bool - Secret
Value string - Value string
- name String
- allow
Override Boolean - is
Secret Boolean - secret
Value String - value String
- name string
- allow
Override boolean - is
Secret boolean - secret
Value string - value string
- name str
- allow_
override bool - is_
secret bool - secret_
value str - value str
- name String
- allow
Override Boolean - is
Secret Boolean - secret
Value String - value String
Package Details
- Repository
- https://github.com/pulumi/pulumi-azuredevops
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azuredevops
Terraform Provider.