@pulumi/azuredevops 2.5.0-alpha.1658776601 → 2.5.0-alpha.1658778001
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/buildDefinition.d.ts +239 -0
- package/build/buildDefinition.js +152 -0
- package/build/buildDefinition.js.map +1 -1
- package/buildDefinition.d.ts +240 -0
- package/buildDefinition.js +153 -0
- package/buildDefinition.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/types/input.d.ts +240 -0
- package/types/output.d.ts +240 -0
|
@@ -1,6 +1,158 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import { input as inputs, output as outputs } from "../types";
|
|
3
3
|
/**
|
|
4
|
+
* Manages a Build Definition within Azure DevOps.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
* ### Tfs
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as azuredevops from "@pulumi/azuredevops";
|
|
11
|
+
*
|
|
12
|
+
* const exampleProject = new azuredevops.Project("exampleProject", {
|
|
13
|
+
* visibility: "private",
|
|
14
|
+
* versionControl: "Git",
|
|
15
|
+
* workItemTemplate: "Agile",
|
|
16
|
+
* });
|
|
17
|
+
* const exampleGit = new azuredevops.Git("exampleGit", {
|
|
18
|
+
* projectId: exampleProject.id,
|
|
19
|
+
* initialization: {
|
|
20
|
+
* initType: "Clean",
|
|
21
|
+
* },
|
|
22
|
+
* });
|
|
23
|
+
* const exampleVariableGroup = new azuredevops.VariableGroup("exampleVariableGroup", {
|
|
24
|
+
* projectId: exampleProject.id,
|
|
25
|
+
* description: "Managed by Terraform",
|
|
26
|
+
* allowAccess: true,
|
|
27
|
+
* variables: [{
|
|
28
|
+
* name: "FOO",
|
|
29
|
+
* value: "BAR",
|
|
30
|
+
* }],
|
|
31
|
+
* });
|
|
32
|
+
* const exampleBuildDefinition = new azuredevops.BuildDefinition("exampleBuildDefinition", {
|
|
33
|
+
* projectId: exampleProject.id,
|
|
34
|
+
* path: "\\ExampleFolder",
|
|
35
|
+
* ciTrigger: {
|
|
36
|
+
* useYaml: true,
|
|
37
|
+
* },
|
|
38
|
+
* schedules: [{
|
|
39
|
+
* branchFilters: [{
|
|
40
|
+
* includes: ["master"],
|
|
41
|
+
* excludes: [
|
|
42
|
+
* "test",
|
|
43
|
+
* "regression",
|
|
44
|
+
* ],
|
|
45
|
+
* }],
|
|
46
|
+
* daysToBuilds: [
|
|
47
|
+
* "Wed",
|
|
48
|
+
* "Sun",
|
|
49
|
+
* ],
|
|
50
|
+
* scheduleOnlyWithChanges: true,
|
|
51
|
+
* startHours: 10,
|
|
52
|
+
* startMinutes: 59,
|
|
53
|
+
* timeZone: "(UTC) Coordinated Universal Time",
|
|
54
|
+
* }],
|
|
55
|
+
* repository: {
|
|
56
|
+
* repoType: "TfsGit",
|
|
57
|
+
* repoId: exampleGit.id,
|
|
58
|
+
* branchName: exampleGit.defaultBranch,
|
|
59
|
+
* ymlPath: "azure-pipelines.yml",
|
|
60
|
+
* },
|
|
61
|
+
* variableGroups: [exampleVariableGroup.id],
|
|
62
|
+
* variables: [
|
|
63
|
+
* {
|
|
64
|
+
* name: "PipelineVariable",
|
|
65
|
+
* value: "Go Microsoft!",
|
|
66
|
+
* },
|
|
67
|
+
* {
|
|
68
|
+
* name: "PipelineSecret",
|
|
69
|
+
* secretValue: "ZGV2cw",
|
|
70
|
+
* isSecret: true,
|
|
71
|
+
* },
|
|
72
|
+
* ],
|
|
73
|
+
* });
|
|
74
|
+
* ```
|
|
75
|
+
* ### GitHub Enterprise
|
|
76
|
+
* ```typescript
|
|
77
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
78
|
+
* import * as azuredevops from "@pulumi/azuredevops";
|
|
79
|
+
*
|
|
80
|
+
* const exampleProject = new azuredevops.Project("exampleProject", {
|
|
81
|
+
* visibility: "private",
|
|
82
|
+
* versionControl: "Git",
|
|
83
|
+
* workItemTemplate: "Agile",
|
|
84
|
+
* });
|
|
85
|
+
* const exampleServiceEndpointGitHubEnterprise = new azuredevops.ServiceEndpointGitHubEnterprise("exampleServiceEndpointGitHubEnterprise", {
|
|
86
|
+
* projectId: exampleProject.id,
|
|
87
|
+
* serviceEndpointName: "Example GitHub Enterprise",
|
|
88
|
+
* url: "https://github.contoso.com",
|
|
89
|
+
* description: "Managed by Terraform",
|
|
90
|
+
* authPersonal: {
|
|
91
|
+
* personalAccessToken: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
92
|
+
* },
|
|
93
|
+
* });
|
|
94
|
+
* const exampleBuildDefinition = new azuredevops.BuildDefinition("exampleBuildDefinition", {
|
|
95
|
+
* projectId: exampleProject.id,
|
|
96
|
+
* path: "\\ExampleFolder",
|
|
97
|
+
* ciTrigger: {
|
|
98
|
+
* useYaml: true,
|
|
99
|
+
* },
|
|
100
|
+
* repository: {
|
|
101
|
+
* repoType: "GitHubEnterprise",
|
|
102
|
+
* repoId: "<GitHub Org>/<Repo Name>",
|
|
103
|
+
* githubEnterpriseUrl: "https://github.company.com",
|
|
104
|
+
* branchName: "master",
|
|
105
|
+
* ymlPath: "azure-pipelines.yml",
|
|
106
|
+
* serviceConnectionId: exampleServiceEndpointGitHubEnterprise.id,
|
|
107
|
+
* },
|
|
108
|
+
* schedules: [{
|
|
109
|
+
* branchFilters: [{
|
|
110
|
+
* includes: ["main"],
|
|
111
|
+
* excludes: [
|
|
112
|
+
* "test",
|
|
113
|
+
* "regression",
|
|
114
|
+
* ],
|
|
115
|
+
* }],
|
|
116
|
+
* daysToBuilds: [
|
|
117
|
+
* "Wed",
|
|
118
|
+
* "Sun",
|
|
119
|
+
* ],
|
|
120
|
+
* scheduleOnlyWithChanges: true,
|
|
121
|
+
* startHours: 10,
|
|
122
|
+
* startMinutes: 59,
|
|
123
|
+
* timeZone: "(UTC) Coordinated Universal Time",
|
|
124
|
+
* }],
|
|
125
|
+
* });
|
|
126
|
+
* ```
|
|
127
|
+
* ## Remarks
|
|
128
|
+
*
|
|
129
|
+
* The path attribute can not end in `\` unless the path is the root value of `\`.
|
|
130
|
+
*
|
|
131
|
+
* Valid path values (yaml encoded) include:
|
|
132
|
+
* - `\\`
|
|
133
|
+
* - `\\ExampleFolder`
|
|
134
|
+
* - `\\Nested\\Example Folder`
|
|
135
|
+
*
|
|
136
|
+
* The value of `\\ExampleFolder\\` would be invalid.
|
|
137
|
+
*
|
|
138
|
+
* ## Relevant Links
|
|
139
|
+
*
|
|
140
|
+
* - [Azure DevOps Service REST API 6.0 - Build Definitions](https://docs.microsoft.com/en-us/rest/api/azure/devops/build/definitions?view=azure-devops-rest-6.0)
|
|
141
|
+
*
|
|
142
|
+
* ## Import
|
|
143
|
+
*
|
|
144
|
+
* Azure DevOps Build Definitions can be imported using the project name/definitions Id or by the project Guid/definitions Id, e.g.
|
|
145
|
+
*
|
|
146
|
+
* ```sh
|
|
147
|
+
* $ pulumi import azuredevops:Build/buildDefinition:BuildDefinition example "Example Project"/10
|
|
148
|
+
* ```
|
|
149
|
+
*
|
|
150
|
+
* or
|
|
151
|
+
*
|
|
152
|
+
* ```sh
|
|
153
|
+
* $ pulumi import azuredevops:Build/buildDefinition:BuildDefinition example 00000000-0000-0000-0000-000000000000/0
|
|
154
|
+
* ```
|
|
155
|
+
*
|
|
4
156
|
* @deprecated azuredevops.build.BuildDefinition has been deprecated in favor of azuredevops.BuildDefinition
|
|
5
157
|
*/
|
|
6
158
|
export declare class BuildDefinition extends pulumi.CustomResource {
|
|
@@ -19,16 +171,46 @@ export declare class BuildDefinition extends pulumi.CustomResource {
|
|
|
19
171
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
20
172
|
*/
|
|
21
173
|
static isInstance(obj: any): obj is BuildDefinition;
|
|
174
|
+
/**
|
|
175
|
+
* The agent pool that should execute the build. Defaults to `Azure Pipelines`.
|
|
176
|
+
*/
|
|
22
177
|
readonly agentPoolName: pulumi.Output<string | undefined>;
|
|
178
|
+
/**
|
|
179
|
+
* Continuous Integration trigger.
|
|
180
|
+
*/
|
|
23
181
|
readonly ciTrigger: pulumi.Output<outputs.Build.BuildDefinitionCiTrigger | undefined>;
|
|
182
|
+
/**
|
|
183
|
+
* The name of the build definition.
|
|
184
|
+
*/
|
|
24
185
|
readonly name: pulumi.Output<string>;
|
|
186
|
+
/**
|
|
187
|
+
* The folder path of the build definition.
|
|
188
|
+
*/
|
|
25
189
|
readonly path: pulumi.Output<string | undefined>;
|
|
190
|
+
/**
|
|
191
|
+
* The project ID or project name.
|
|
192
|
+
*/
|
|
26
193
|
readonly projectId: pulumi.Output<string>;
|
|
194
|
+
/**
|
|
195
|
+
* Pull Request Integration Integration trigger.
|
|
196
|
+
*/
|
|
27
197
|
readonly pullRequestTrigger: pulumi.Output<outputs.Build.BuildDefinitionPullRequestTrigger | undefined>;
|
|
198
|
+
/**
|
|
199
|
+
* A `repository` block as documented below.
|
|
200
|
+
*/
|
|
28
201
|
readonly repository: pulumi.Output<outputs.Build.BuildDefinitionRepository>;
|
|
202
|
+
/**
|
|
203
|
+
* The revision of the build definition
|
|
204
|
+
*/
|
|
29
205
|
readonly revision: pulumi.Output<number>;
|
|
30
206
|
readonly schedules: pulumi.Output<outputs.Build.BuildDefinitionSchedule[] | undefined>;
|
|
207
|
+
/**
|
|
208
|
+
* A list of variable group IDs (integers) to link to the build definition.
|
|
209
|
+
*/
|
|
31
210
|
readonly variableGroups: pulumi.Output<number[] | undefined>;
|
|
211
|
+
/**
|
|
212
|
+
* A list of `variable` blocks, as documented below.
|
|
213
|
+
*/
|
|
32
214
|
readonly variables: pulumi.Output<outputs.Build.BuildDefinitionVariable[] | undefined>;
|
|
33
215
|
/**
|
|
34
216
|
* Create a BuildDefinition resource with the given unique name, arguments, and options.
|
|
@@ -44,30 +226,87 @@ export declare class BuildDefinition extends pulumi.CustomResource {
|
|
|
44
226
|
* Input properties used for looking up and filtering BuildDefinition resources.
|
|
45
227
|
*/
|
|
46
228
|
export interface BuildDefinitionState {
|
|
229
|
+
/**
|
|
230
|
+
* The agent pool that should execute the build. Defaults to `Azure Pipelines`.
|
|
231
|
+
*/
|
|
47
232
|
agentPoolName?: pulumi.Input<string>;
|
|
233
|
+
/**
|
|
234
|
+
* Continuous Integration trigger.
|
|
235
|
+
*/
|
|
48
236
|
ciTrigger?: pulumi.Input<inputs.Build.BuildDefinitionCiTrigger>;
|
|
237
|
+
/**
|
|
238
|
+
* The name of the build definition.
|
|
239
|
+
*/
|
|
49
240
|
name?: pulumi.Input<string>;
|
|
241
|
+
/**
|
|
242
|
+
* The folder path of the build definition.
|
|
243
|
+
*/
|
|
50
244
|
path?: pulumi.Input<string>;
|
|
245
|
+
/**
|
|
246
|
+
* The project ID or project name.
|
|
247
|
+
*/
|
|
51
248
|
projectId?: pulumi.Input<string>;
|
|
249
|
+
/**
|
|
250
|
+
* Pull Request Integration Integration trigger.
|
|
251
|
+
*/
|
|
52
252
|
pullRequestTrigger?: pulumi.Input<inputs.Build.BuildDefinitionPullRequestTrigger>;
|
|
253
|
+
/**
|
|
254
|
+
* A `repository` block as documented below.
|
|
255
|
+
*/
|
|
53
256
|
repository?: pulumi.Input<inputs.Build.BuildDefinitionRepository>;
|
|
257
|
+
/**
|
|
258
|
+
* The revision of the build definition
|
|
259
|
+
*/
|
|
54
260
|
revision?: pulumi.Input<number>;
|
|
55
261
|
schedules?: pulumi.Input<pulumi.Input<inputs.Build.BuildDefinitionSchedule>[]>;
|
|
262
|
+
/**
|
|
263
|
+
* A list of variable group IDs (integers) to link to the build definition.
|
|
264
|
+
*/
|
|
56
265
|
variableGroups?: pulumi.Input<pulumi.Input<number>[]>;
|
|
266
|
+
/**
|
|
267
|
+
* A list of `variable` blocks, as documented below.
|
|
268
|
+
*/
|
|
57
269
|
variables?: pulumi.Input<pulumi.Input<inputs.Build.BuildDefinitionVariable>[]>;
|
|
58
270
|
}
|
|
59
271
|
/**
|
|
60
272
|
* The set of arguments for constructing a BuildDefinition resource.
|
|
61
273
|
*/
|
|
62
274
|
export interface BuildDefinitionArgs {
|
|
275
|
+
/**
|
|
276
|
+
* The agent pool that should execute the build. Defaults to `Azure Pipelines`.
|
|
277
|
+
*/
|
|
63
278
|
agentPoolName?: pulumi.Input<string>;
|
|
279
|
+
/**
|
|
280
|
+
* Continuous Integration trigger.
|
|
281
|
+
*/
|
|
64
282
|
ciTrigger?: pulumi.Input<inputs.Build.BuildDefinitionCiTrigger>;
|
|
283
|
+
/**
|
|
284
|
+
* The name of the build definition.
|
|
285
|
+
*/
|
|
65
286
|
name?: pulumi.Input<string>;
|
|
287
|
+
/**
|
|
288
|
+
* The folder path of the build definition.
|
|
289
|
+
*/
|
|
66
290
|
path?: pulumi.Input<string>;
|
|
291
|
+
/**
|
|
292
|
+
* The project ID or project name.
|
|
293
|
+
*/
|
|
67
294
|
projectId: pulumi.Input<string>;
|
|
295
|
+
/**
|
|
296
|
+
* Pull Request Integration Integration trigger.
|
|
297
|
+
*/
|
|
68
298
|
pullRequestTrigger?: pulumi.Input<inputs.Build.BuildDefinitionPullRequestTrigger>;
|
|
299
|
+
/**
|
|
300
|
+
* A `repository` block as documented below.
|
|
301
|
+
*/
|
|
69
302
|
repository: pulumi.Input<inputs.Build.BuildDefinitionRepository>;
|
|
70
303
|
schedules?: pulumi.Input<pulumi.Input<inputs.Build.BuildDefinitionSchedule>[]>;
|
|
304
|
+
/**
|
|
305
|
+
* A list of variable group IDs (integers) to link to the build definition.
|
|
306
|
+
*/
|
|
71
307
|
variableGroups?: pulumi.Input<pulumi.Input<number>[]>;
|
|
308
|
+
/**
|
|
309
|
+
* A list of `variable` blocks, as documented below.
|
|
310
|
+
*/
|
|
72
311
|
variables?: pulumi.Input<pulumi.Input<inputs.Build.BuildDefinitionVariable>[]>;
|
|
73
312
|
}
|
package/build/buildDefinition.js
CHANGED
|
@@ -6,6 +6,158 @@ exports.BuildDefinition = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
+
* Manages a Build Definition within Azure DevOps.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
* ### Tfs
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as azuredevops from "@pulumi/azuredevops";
|
|
16
|
+
*
|
|
17
|
+
* const exampleProject = new azuredevops.Project("exampleProject", {
|
|
18
|
+
* visibility: "private",
|
|
19
|
+
* versionControl: "Git",
|
|
20
|
+
* workItemTemplate: "Agile",
|
|
21
|
+
* });
|
|
22
|
+
* const exampleGit = new azuredevops.Git("exampleGit", {
|
|
23
|
+
* projectId: exampleProject.id,
|
|
24
|
+
* initialization: {
|
|
25
|
+
* initType: "Clean",
|
|
26
|
+
* },
|
|
27
|
+
* });
|
|
28
|
+
* const exampleVariableGroup = new azuredevops.VariableGroup("exampleVariableGroup", {
|
|
29
|
+
* projectId: exampleProject.id,
|
|
30
|
+
* description: "Managed by Terraform",
|
|
31
|
+
* allowAccess: true,
|
|
32
|
+
* variables: [{
|
|
33
|
+
* name: "FOO",
|
|
34
|
+
* value: "BAR",
|
|
35
|
+
* }],
|
|
36
|
+
* });
|
|
37
|
+
* const exampleBuildDefinition = new azuredevops.BuildDefinition("exampleBuildDefinition", {
|
|
38
|
+
* projectId: exampleProject.id,
|
|
39
|
+
* path: "\\ExampleFolder",
|
|
40
|
+
* ciTrigger: {
|
|
41
|
+
* useYaml: true,
|
|
42
|
+
* },
|
|
43
|
+
* schedules: [{
|
|
44
|
+
* branchFilters: [{
|
|
45
|
+
* includes: ["master"],
|
|
46
|
+
* excludes: [
|
|
47
|
+
* "test",
|
|
48
|
+
* "regression",
|
|
49
|
+
* ],
|
|
50
|
+
* }],
|
|
51
|
+
* daysToBuilds: [
|
|
52
|
+
* "Wed",
|
|
53
|
+
* "Sun",
|
|
54
|
+
* ],
|
|
55
|
+
* scheduleOnlyWithChanges: true,
|
|
56
|
+
* startHours: 10,
|
|
57
|
+
* startMinutes: 59,
|
|
58
|
+
* timeZone: "(UTC) Coordinated Universal Time",
|
|
59
|
+
* }],
|
|
60
|
+
* repository: {
|
|
61
|
+
* repoType: "TfsGit",
|
|
62
|
+
* repoId: exampleGit.id,
|
|
63
|
+
* branchName: exampleGit.defaultBranch,
|
|
64
|
+
* ymlPath: "azure-pipelines.yml",
|
|
65
|
+
* },
|
|
66
|
+
* variableGroups: [exampleVariableGroup.id],
|
|
67
|
+
* variables: [
|
|
68
|
+
* {
|
|
69
|
+
* name: "PipelineVariable",
|
|
70
|
+
* value: "Go Microsoft!",
|
|
71
|
+
* },
|
|
72
|
+
* {
|
|
73
|
+
* name: "PipelineSecret",
|
|
74
|
+
* secretValue: "ZGV2cw",
|
|
75
|
+
* isSecret: true,
|
|
76
|
+
* },
|
|
77
|
+
* ],
|
|
78
|
+
* });
|
|
79
|
+
* ```
|
|
80
|
+
* ### GitHub Enterprise
|
|
81
|
+
* ```typescript
|
|
82
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
83
|
+
* import * as azuredevops from "@pulumi/azuredevops";
|
|
84
|
+
*
|
|
85
|
+
* const exampleProject = new azuredevops.Project("exampleProject", {
|
|
86
|
+
* visibility: "private",
|
|
87
|
+
* versionControl: "Git",
|
|
88
|
+
* workItemTemplate: "Agile",
|
|
89
|
+
* });
|
|
90
|
+
* const exampleServiceEndpointGitHubEnterprise = new azuredevops.ServiceEndpointGitHubEnterprise("exampleServiceEndpointGitHubEnterprise", {
|
|
91
|
+
* projectId: exampleProject.id,
|
|
92
|
+
* serviceEndpointName: "Example GitHub Enterprise",
|
|
93
|
+
* url: "https://github.contoso.com",
|
|
94
|
+
* description: "Managed by Terraform",
|
|
95
|
+
* authPersonal: {
|
|
96
|
+
* personalAccessToken: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
97
|
+
* },
|
|
98
|
+
* });
|
|
99
|
+
* const exampleBuildDefinition = new azuredevops.BuildDefinition("exampleBuildDefinition", {
|
|
100
|
+
* projectId: exampleProject.id,
|
|
101
|
+
* path: "\\ExampleFolder",
|
|
102
|
+
* ciTrigger: {
|
|
103
|
+
* useYaml: true,
|
|
104
|
+
* },
|
|
105
|
+
* repository: {
|
|
106
|
+
* repoType: "GitHubEnterprise",
|
|
107
|
+
* repoId: "<GitHub Org>/<Repo Name>",
|
|
108
|
+
* githubEnterpriseUrl: "https://github.company.com",
|
|
109
|
+
* branchName: "master",
|
|
110
|
+
* ymlPath: "azure-pipelines.yml",
|
|
111
|
+
* serviceConnectionId: exampleServiceEndpointGitHubEnterprise.id,
|
|
112
|
+
* },
|
|
113
|
+
* schedules: [{
|
|
114
|
+
* branchFilters: [{
|
|
115
|
+
* includes: ["main"],
|
|
116
|
+
* excludes: [
|
|
117
|
+
* "test",
|
|
118
|
+
* "regression",
|
|
119
|
+
* ],
|
|
120
|
+
* }],
|
|
121
|
+
* daysToBuilds: [
|
|
122
|
+
* "Wed",
|
|
123
|
+
* "Sun",
|
|
124
|
+
* ],
|
|
125
|
+
* scheduleOnlyWithChanges: true,
|
|
126
|
+
* startHours: 10,
|
|
127
|
+
* startMinutes: 59,
|
|
128
|
+
* timeZone: "(UTC) Coordinated Universal Time",
|
|
129
|
+
* }],
|
|
130
|
+
* });
|
|
131
|
+
* ```
|
|
132
|
+
* ## Remarks
|
|
133
|
+
*
|
|
134
|
+
* The path attribute can not end in `\` unless the path is the root value of `\`.
|
|
135
|
+
*
|
|
136
|
+
* Valid path values (yaml encoded) include:
|
|
137
|
+
* - `\\`
|
|
138
|
+
* - `\\ExampleFolder`
|
|
139
|
+
* - `\\Nested\\Example Folder`
|
|
140
|
+
*
|
|
141
|
+
* The value of `\\ExampleFolder\\` would be invalid.
|
|
142
|
+
*
|
|
143
|
+
* ## Relevant Links
|
|
144
|
+
*
|
|
145
|
+
* - [Azure DevOps Service REST API 6.0 - Build Definitions](https://docs.microsoft.com/en-us/rest/api/azure/devops/build/definitions?view=azure-devops-rest-6.0)
|
|
146
|
+
*
|
|
147
|
+
* ## Import
|
|
148
|
+
*
|
|
149
|
+
* Azure DevOps Build Definitions can be imported using the project name/definitions Id or by the project Guid/definitions Id, e.g.
|
|
150
|
+
*
|
|
151
|
+
* ```sh
|
|
152
|
+
* $ pulumi import azuredevops:Build/buildDefinition:BuildDefinition example "Example Project"/10
|
|
153
|
+
* ```
|
|
154
|
+
*
|
|
155
|
+
* or
|
|
156
|
+
*
|
|
157
|
+
* ```sh
|
|
158
|
+
* $ pulumi import azuredevops:Build/buildDefinition:BuildDefinition example 00000000-0000-0000-0000-000000000000/0
|
|
159
|
+
* ```
|
|
160
|
+
*
|
|
9
161
|
* @deprecated azuredevops.build.BuildDefinition has been deprecated in favor of azuredevops.BuildDefinition
|
|
10
162
|
*/
|
|
11
163
|
class BuildDefinition extends pulumi.CustomResource {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildDefinition.js","sourceRoot":"","sources":["../../build/buildDefinition.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"buildDefinition.js","sourceRoot":"","sources":["../../build/buildDefinition.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0JG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IAgFtD,gHAAgH;IAChH,YAAY,IAAY,EAAE,WAAwD,EAAE,IAAmC;QACnH,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,8HAA8H,CAAC,CAAA;QAC/I,IAAI,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