@pulumi/azuredevops 2.3.0 → 2.3.1
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 +40 -3
- package/build/buildDefinition.js +36 -0
- package/build/buildDefinition.js.map +1 -1
- package/buildDefinition.d.ts +40 -3
- package/buildDefinition.js +36 -0
- package/buildDefinition.js.map +1 -1
- package/git.d.ts +32 -78
- package/git.js +32 -78
- package/git.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +1 -1
- package/repository/git.d.ts +32 -78
- package/repository/git.js +32 -78
- package/repository/git.js.map +1 -1
- package/serviceEndpointAzureDevOps.d.ts +2 -0
- package/serviceEndpointAzureDevOps.js +2 -0
- package/serviceEndpointAzureDevOps.js.map +1 -1
- package/serviceEndpointGenericGit.d.ts +6 -6
- package/types/input.d.ts +57 -0
- package/types/output.d.ts +65 -0
|
@@ -35,6 +35,23 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
35
35
|
* ciTrigger: {
|
|
36
36
|
* useYaml: true,
|
|
37
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
|
+
* }],
|
|
38
55
|
* repository: {
|
|
39
56
|
* repoType: "TfsGit",
|
|
40
57
|
* repoId: repository.id,
|
|
@@ -74,6 +91,23 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
74
91
|
* ymlPath: "azure-pipelines.yml",
|
|
75
92
|
* serviceConnectionId: "...",
|
|
76
93
|
* },
|
|
94
|
+
* schedules: [{
|
|
95
|
+
* branchFilters: [{
|
|
96
|
+
* includes: ["main"],
|
|
97
|
+
* excludes: [
|
|
98
|
+
* "test",
|
|
99
|
+
* "regression",
|
|
100
|
+
* ],
|
|
101
|
+
* }],
|
|
102
|
+
* daysToBuilds: [
|
|
103
|
+
* "Wed",
|
|
104
|
+
* "Sun",
|
|
105
|
+
* ],
|
|
106
|
+
* scheduleOnlyWithChanges: true,
|
|
107
|
+
* startHours: 10,
|
|
108
|
+
* startMinutes: 59,
|
|
109
|
+
* timeZone: "(UTC) Coordinated Universal Time",
|
|
110
|
+
* }],
|
|
77
111
|
* });
|
|
78
112
|
* ```
|
|
79
113
|
* ## Relevant Links
|
|
@@ -113,7 +147,7 @@ export declare class BuildDefinition extends pulumi.CustomResource {
|
|
|
113
147
|
*/
|
|
114
148
|
static isInstance(obj: any): obj is BuildDefinition;
|
|
115
149
|
/**
|
|
116
|
-
* The agent pool that should execute the build.
|
|
150
|
+
* The agent pool that should execute the build. Defaults to `Azure Pipelines`.
|
|
117
151
|
*/
|
|
118
152
|
readonly agentPoolName: pulumi.Output<string | undefined>;
|
|
119
153
|
/**
|
|
@@ -144,6 +178,7 @@ export declare class BuildDefinition extends pulumi.CustomResource {
|
|
|
144
178
|
* The revision of the build definition
|
|
145
179
|
*/
|
|
146
180
|
readonly revision: pulumi.Output<number>;
|
|
181
|
+
readonly schedules: pulumi.Output<outputs.Build.BuildDefinitionSchedule[] | undefined>;
|
|
147
182
|
/**
|
|
148
183
|
* A list of variable group IDs (integers) to link to the build definition.
|
|
149
184
|
*/
|
|
@@ -167,7 +202,7 @@ export declare class BuildDefinition extends pulumi.CustomResource {
|
|
|
167
202
|
*/
|
|
168
203
|
export interface BuildDefinitionState {
|
|
169
204
|
/**
|
|
170
|
-
* The agent pool that should execute the build.
|
|
205
|
+
* The agent pool that should execute the build. Defaults to `Azure Pipelines`.
|
|
171
206
|
*/
|
|
172
207
|
agentPoolName?: pulumi.Input<string>;
|
|
173
208
|
/**
|
|
@@ -198,6 +233,7 @@ export interface BuildDefinitionState {
|
|
|
198
233
|
* The revision of the build definition
|
|
199
234
|
*/
|
|
200
235
|
revision?: pulumi.Input<number>;
|
|
236
|
+
schedules?: pulumi.Input<pulumi.Input<inputs.Build.BuildDefinitionSchedule>[]>;
|
|
201
237
|
/**
|
|
202
238
|
* A list of variable group IDs (integers) to link to the build definition.
|
|
203
239
|
*/
|
|
@@ -212,7 +248,7 @@ export interface BuildDefinitionState {
|
|
|
212
248
|
*/
|
|
213
249
|
export interface BuildDefinitionArgs {
|
|
214
250
|
/**
|
|
215
|
-
* The agent pool that should execute the build.
|
|
251
|
+
* The agent pool that should execute the build. Defaults to `Azure Pipelines`.
|
|
216
252
|
*/
|
|
217
253
|
agentPoolName?: pulumi.Input<string>;
|
|
218
254
|
/**
|
|
@@ -239,6 +275,7 @@ export interface BuildDefinitionArgs {
|
|
|
239
275
|
* A `repository` block as documented below.
|
|
240
276
|
*/
|
|
241
277
|
repository: pulumi.Input<inputs.Build.BuildDefinitionRepository>;
|
|
278
|
+
schedules?: pulumi.Input<pulumi.Input<inputs.Build.BuildDefinitionSchedule>[]>;
|
|
242
279
|
/**
|
|
243
280
|
* A list of variable group IDs (integers) to link to the build definition.
|
|
244
281
|
*/
|
package/build/buildDefinition.js
CHANGED
|
@@ -40,6 +40,23 @@ const utilities = require("../utilities");
|
|
|
40
40
|
* ciTrigger: {
|
|
41
41
|
* useYaml: true,
|
|
42
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
|
+
* }],
|
|
43
60
|
* repository: {
|
|
44
61
|
* repoType: "TfsGit",
|
|
45
62
|
* repoId: repository.id,
|
|
@@ -79,6 +96,23 @@ const utilities = require("../utilities");
|
|
|
79
96
|
* ymlPath: "azure-pipelines.yml",
|
|
80
97
|
* serviceConnectionId: "...",
|
|
81
98
|
* },
|
|
99
|
+
* schedules: [{
|
|
100
|
+
* branchFilters: [{
|
|
101
|
+
* includes: ["main"],
|
|
102
|
+
* excludes: [
|
|
103
|
+
* "test",
|
|
104
|
+
* "regression",
|
|
105
|
+
* ],
|
|
106
|
+
* }],
|
|
107
|
+
* daysToBuilds: [
|
|
108
|
+
* "Wed",
|
|
109
|
+
* "Sun",
|
|
110
|
+
* ],
|
|
111
|
+
* scheduleOnlyWithChanges: true,
|
|
112
|
+
* startHours: 10,
|
|
113
|
+
* startMinutes: 59,
|
|
114
|
+
* timeZone: "(UTC) Coordinated Universal Time",
|
|
115
|
+
* }],
|
|
82
116
|
* });
|
|
83
117
|
* ```
|
|
84
118
|
* ## Relevant Links
|
|
@@ -117,6 +151,7 @@ class BuildDefinition extends pulumi.CustomResource {
|
|
|
117
151
|
inputs["pullRequestTrigger"] = state ? state.pullRequestTrigger : undefined;
|
|
118
152
|
inputs["repository"] = state ? state.repository : undefined;
|
|
119
153
|
inputs["revision"] = state ? state.revision : undefined;
|
|
154
|
+
inputs["schedules"] = state ? state.schedules : undefined;
|
|
120
155
|
inputs["variableGroups"] = state ? state.variableGroups : undefined;
|
|
121
156
|
inputs["variables"] = state ? state.variables : undefined;
|
|
122
157
|
}
|
|
@@ -135,6 +170,7 @@ class BuildDefinition extends pulumi.CustomResource {
|
|
|
135
170
|
inputs["projectId"] = args ? args.projectId : undefined;
|
|
136
171
|
inputs["pullRequestTrigger"] = args ? args.pullRequestTrigger : undefined;
|
|
137
172
|
inputs["repository"] = args ? args.repository : undefined;
|
|
173
|
+
inputs["schedules"] = args ? args.schedules : undefined;
|
|
138
174
|
inputs["variableGroups"] = args ? args.variableGroups : undefined;
|
|
139
175
|
inputs["variables"] = args ? args.variables : undefined;
|
|
140
176
|
inputs["revision"] = undefined /*out*/;
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiIG;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,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA+C,CAAC;YAC9D,MAAM,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,MAAM,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,MAAM,CAAC,MAAM,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,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC1C;QACD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACf,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE,EAAC,CAAC,CAAC;SACxE;QACD,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;IAzHD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,8HAA8H,CAAC,CAAA;QAC/I,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACtE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,eAAe,CAAC,YAAY,CAAC;IAChE,CAAC;;AA3BL,0CA2HC;AA5GG,gBAAgB;AACO,4BAAY,GAAG,mDAAmD,CAAC"}
|
package/buildDefinition.d.ts
CHANGED
|
@@ -35,6 +35,23 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
35
35
|
* ciTrigger: {
|
|
36
36
|
* useYaml: true,
|
|
37
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
|
+
* }],
|
|
38
55
|
* repository: {
|
|
39
56
|
* repoType: "TfsGit",
|
|
40
57
|
* repoId: repository.id,
|
|
@@ -74,6 +91,23 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
74
91
|
* ymlPath: "azure-pipelines.yml",
|
|
75
92
|
* serviceConnectionId: "...",
|
|
76
93
|
* },
|
|
94
|
+
* schedules: [{
|
|
95
|
+
* branchFilters: [{
|
|
96
|
+
* includes: ["main"],
|
|
97
|
+
* excludes: [
|
|
98
|
+
* "test",
|
|
99
|
+
* "regression",
|
|
100
|
+
* ],
|
|
101
|
+
* }],
|
|
102
|
+
* daysToBuilds: [
|
|
103
|
+
* "Wed",
|
|
104
|
+
* "Sun",
|
|
105
|
+
* ],
|
|
106
|
+
* scheduleOnlyWithChanges: true,
|
|
107
|
+
* startHours: 10,
|
|
108
|
+
* startMinutes: 59,
|
|
109
|
+
* timeZone: "(UTC) Coordinated Universal Time",
|
|
110
|
+
* }],
|
|
77
111
|
* });
|
|
78
112
|
* ```
|
|
79
113
|
* ## Relevant Links
|
|
@@ -111,7 +145,7 @@ export declare class BuildDefinition extends pulumi.CustomResource {
|
|
|
111
145
|
*/
|
|
112
146
|
static isInstance(obj: any): obj is BuildDefinition;
|
|
113
147
|
/**
|
|
114
|
-
* The agent pool that should execute the build.
|
|
148
|
+
* The agent pool that should execute the build. Defaults to `Azure Pipelines`.
|
|
115
149
|
*/
|
|
116
150
|
readonly agentPoolName: pulumi.Output<string | undefined>;
|
|
117
151
|
/**
|
|
@@ -142,6 +176,7 @@ export declare class BuildDefinition extends pulumi.CustomResource {
|
|
|
142
176
|
* The revision of the build definition
|
|
143
177
|
*/
|
|
144
178
|
readonly revision: pulumi.Output<number>;
|
|
179
|
+
readonly schedules: pulumi.Output<outputs.BuildDefinitionSchedule[] | undefined>;
|
|
145
180
|
/**
|
|
146
181
|
* A list of variable group IDs (integers) to link to the build definition.
|
|
147
182
|
*/
|
|
@@ -164,7 +199,7 @@ export declare class BuildDefinition extends pulumi.CustomResource {
|
|
|
164
199
|
*/
|
|
165
200
|
export interface BuildDefinitionState {
|
|
166
201
|
/**
|
|
167
|
-
* The agent pool that should execute the build.
|
|
202
|
+
* The agent pool that should execute the build. Defaults to `Azure Pipelines`.
|
|
168
203
|
*/
|
|
169
204
|
agentPoolName?: pulumi.Input<string>;
|
|
170
205
|
/**
|
|
@@ -195,6 +230,7 @@ export interface BuildDefinitionState {
|
|
|
195
230
|
* The revision of the build definition
|
|
196
231
|
*/
|
|
197
232
|
revision?: pulumi.Input<number>;
|
|
233
|
+
schedules?: pulumi.Input<pulumi.Input<inputs.BuildDefinitionSchedule>[]>;
|
|
198
234
|
/**
|
|
199
235
|
* A list of variable group IDs (integers) to link to the build definition.
|
|
200
236
|
*/
|
|
@@ -209,7 +245,7 @@ export interface BuildDefinitionState {
|
|
|
209
245
|
*/
|
|
210
246
|
export interface BuildDefinitionArgs {
|
|
211
247
|
/**
|
|
212
|
-
* The agent pool that should execute the build.
|
|
248
|
+
* The agent pool that should execute the build. Defaults to `Azure Pipelines`.
|
|
213
249
|
*/
|
|
214
250
|
agentPoolName?: pulumi.Input<string>;
|
|
215
251
|
/**
|
|
@@ -236,6 +272,7 @@ export interface BuildDefinitionArgs {
|
|
|
236
272
|
* A `repository` block as documented below.
|
|
237
273
|
*/
|
|
238
274
|
repository: pulumi.Input<inputs.BuildDefinitionRepository>;
|
|
275
|
+
schedules?: pulumi.Input<pulumi.Input<inputs.BuildDefinitionSchedule>[]>;
|
|
239
276
|
/**
|
|
240
277
|
* A list of variable group IDs (integers) to link to the build definition.
|
|
241
278
|
*/
|
package/buildDefinition.js
CHANGED
|
@@ -40,6 +40,23 @@ const utilities = require("./utilities");
|
|
|
40
40
|
* ciTrigger: {
|
|
41
41
|
* useYaml: true,
|
|
42
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
|
+
* }],
|
|
43
60
|
* repository: {
|
|
44
61
|
* repoType: "TfsGit",
|
|
45
62
|
* repoId: repository.id,
|
|
@@ -79,6 +96,23 @@ const utilities = require("./utilities");
|
|
|
79
96
|
* ymlPath: "azure-pipelines.yml",
|
|
80
97
|
* serviceConnectionId: "...",
|
|
81
98
|
* },
|
|
99
|
+
* schedules: [{
|
|
100
|
+
* branchFilters: [{
|
|
101
|
+
* includes: ["main"],
|
|
102
|
+
* excludes: [
|
|
103
|
+
* "test",
|
|
104
|
+
* "regression",
|
|
105
|
+
* ],
|
|
106
|
+
* }],
|
|
107
|
+
* daysToBuilds: [
|
|
108
|
+
* "Wed",
|
|
109
|
+
* "Sun",
|
|
110
|
+
* ],
|
|
111
|
+
* scheduleOnlyWithChanges: true,
|
|
112
|
+
* startHours: 10,
|
|
113
|
+
* startMinutes: 59,
|
|
114
|
+
* timeZone: "(UTC) Coordinated Universal Time",
|
|
115
|
+
* }],
|
|
82
116
|
* });
|
|
83
117
|
* ```
|
|
84
118
|
* ## Relevant Links
|
|
@@ -113,6 +147,7 @@ class BuildDefinition extends pulumi.CustomResource {
|
|
|
113
147
|
inputs["pullRequestTrigger"] = state ? state.pullRequestTrigger : undefined;
|
|
114
148
|
inputs["repository"] = state ? state.repository : undefined;
|
|
115
149
|
inputs["revision"] = state ? state.revision : undefined;
|
|
150
|
+
inputs["schedules"] = state ? state.schedules : undefined;
|
|
116
151
|
inputs["variableGroups"] = state ? state.variableGroups : undefined;
|
|
117
152
|
inputs["variables"] = state ? state.variables : undefined;
|
|
118
153
|
}
|
|
@@ -131,6 +166,7 @@ class BuildDefinition extends pulumi.CustomResource {
|
|
|
131
166
|
inputs["projectId"] = args ? args.projectId : undefined;
|
|
132
167
|
inputs["pullRequestTrigger"] = args ? args.pullRequestTrigger : undefined;
|
|
133
168
|
inputs["repository"] = args ? args.repository : undefined;
|
|
169
|
+
inputs["schedules"] = args ? args.schedules : undefined;
|
|
134
170
|
inputs["variableGroups"] = args ? args.variableGroups : undefined;
|
|
135
171
|
inputs["variables"] = args ? args.variables : undefined;
|
|
136
172
|
inputs["revision"] = undefined /*out*/;
|
package/buildDefinition.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildDefinition.js","sourceRoot":"","sources":["../buildDefinition.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"buildDefinition.js","sourceRoot":"","sources":["../buildDefinition.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+HG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IA8EtD,YAAY,IAAY,EAAE,WAAwD,EAAE,IAAmC;QACnH,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA+C,CAAC;YAC9D,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,84 +1,6 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import { input as inputs, output as outputs } from "./types";
|
|
3
3
|
/**
|
|
4
|
-
* Manages a git repository within Azure DevOps.
|
|
5
|
-
*
|
|
6
|
-
* ## Example Usage
|
|
7
|
-
* ### Create Git repository
|
|
8
|
-
*
|
|
9
|
-
* ```typescript
|
|
10
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
12
|
-
*
|
|
13
|
-
* const project = new azuredevops.Project("project", {
|
|
14
|
-
* visibility: "private",
|
|
15
|
-
* versionControl: "Git",
|
|
16
|
-
* workItemTemplate: "Agile",
|
|
17
|
-
* });
|
|
18
|
-
* const repo = new azuredevops.Git("repo", {
|
|
19
|
-
* projectId: project.id,
|
|
20
|
-
* initialization: {
|
|
21
|
-
* initType: "Clean",
|
|
22
|
-
* },
|
|
23
|
-
* });
|
|
24
|
-
* ```
|
|
25
|
-
* ### Create Fork of another Azure DevOps Git repository
|
|
26
|
-
*
|
|
27
|
-
* ```typescript
|
|
28
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
29
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
30
|
-
*
|
|
31
|
-
* const repo = new azuredevops.Git("repo", {
|
|
32
|
-
* projectId: azuredevops_project.project.id,
|
|
33
|
-
* parentRepositoryId: azuredevops_git_repository.parent.id,
|
|
34
|
-
* initialization: {
|
|
35
|
-
* initType: "Clean",
|
|
36
|
-
* },
|
|
37
|
-
* });
|
|
38
|
-
* ```
|
|
39
|
-
* ### Create Import from another Git repository
|
|
40
|
-
*
|
|
41
|
-
* ```typescript
|
|
42
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
43
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
44
|
-
*
|
|
45
|
-
* const repo = new azuredevops.Git("repo", {
|
|
46
|
-
* projectId: azuredevops_project.project.id,
|
|
47
|
-
* initialization: {
|
|
48
|
-
* initType: "Import",
|
|
49
|
-
* sourceType: "Git",
|
|
50
|
-
* sourceUrl: "https://github.com/microsoft/terraform-provider-azuredevops.git",
|
|
51
|
-
* },
|
|
52
|
-
* });
|
|
53
|
-
* ```
|
|
54
|
-
* ### Import from a Private Repository
|
|
55
|
-
*
|
|
56
|
-
* ```typescript
|
|
57
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
58
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
59
|
-
*
|
|
60
|
-
* const serviceendpoint = new azuredevops.ServiceEndpointGenericGit("serviceendpoint", {
|
|
61
|
-
* projectId: azuredevops_project.project.id,
|
|
62
|
-
* repositoryUrl: "https://dev.azure.com/org/project/_git/repository",
|
|
63
|
-
* username: "username",
|
|
64
|
-
* password: "<password>/<PAT>",
|
|
65
|
-
* serviceEndpointName: "Sample Generic Git",
|
|
66
|
-
* description: "Managed by Terraform",
|
|
67
|
-
* });
|
|
68
|
-
* const repo = new azuredevops.Git("repo", {
|
|
69
|
-
* projectId: azuredevops_project.project.id,
|
|
70
|
-
* initialization: {
|
|
71
|
-
* initType: "Import",
|
|
72
|
-
* sourceType: "Git",
|
|
73
|
-
* sourceUrl: "https://dev.azure.com/example-org/private-repository.git",
|
|
74
|
-
* serviceConnectionId: serviceendpoint.id,
|
|
75
|
-
* },
|
|
76
|
-
* });
|
|
77
|
-
* ```
|
|
78
|
-
* ## Relevant Links
|
|
79
|
-
*
|
|
80
|
-
* - [Azure DevOps Service REST API 5.1 - Git Repositories](https://docs.microsoft.com/en-us/rest/api/azure/devops/git/repositories?view=azure-devops-rest-5.1)
|
|
81
|
-
*
|
|
82
4
|
* ## Import
|
|
83
5
|
*
|
|
84
6
|
* Azure DevOps Repositories can be imported using the repo name or by the repo Guid e.g.
|
|
@@ -92,6 +14,38 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
92
14
|
* ```sh
|
|
93
15
|
* $ pulumi import azuredevops:index/git:Git repository projectName/00000000-0000-0000-0000-000000000000
|
|
94
16
|
* ```
|
|
17
|
+
*
|
|
18
|
+
* hcl resource "azuredevops_git_repository" "repo" {
|
|
19
|
+
*
|
|
20
|
+
* project_id = azuredevops_project.project.id
|
|
21
|
+
*
|
|
22
|
+
* name
|
|
23
|
+
*
|
|
24
|
+
* = "Existing Git Repository"
|
|
25
|
+
*
|
|
26
|
+
* default_branch = "refs/heads/main"
|
|
27
|
+
*
|
|
28
|
+
* initialization {
|
|
29
|
+
*
|
|
30
|
+
* init_type = "Clean"
|
|
31
|
+
*
|
|
32
|
+
* }
|
|
33
|
+
*
|
|
34
|
+
* lifecycle {
|
|
35
|
+
*
|
|
36
|
+
* ignore_changes = [
|
|
37
|
+
*
|
|
38
|
+
* # Ignore changes to initialization to support importing existing repositories
|
|
39
|
+
*
|
|
40
|
+
* # Given that a repo now exists, either imported into terraform state or created by terraform,
|
|
41
|
+
*
|
|
42
|
+
* # we don't care for the configuration of initialization against the existing resource
|
|
43
|
+
*
|
|
44
|
+
* initialization,
|
|
45
|
+
*
|
|
46
|
+
* ]
|
|
47
|
+
*
|
|
48
|
+
* } }
|
|
95
49
|
*/
|
|
96
50
|
export declare class Git extends pulumi.CustomResource {
|
|
97
51
|
/**
|
package/git.js
CHANGED
|
@@ -6,84 +6,6 @@ exports.Git = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* Manages a git repository within Azure DevOps.
|
|
10
|
-
*
|
|
11
|
-
* ## Example Usage
|
|
12
|
-
* ### Create Git repository
|
|
13
|
-
*
|
|
14
|
-
* ```typescript
|
|
15
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
17
|
-
*
|
|
18
|
-
* const project = new azuredevops.Project("project", {
|
|
19
|
-
* visibility: "private",
|
|
20
|
-
* versionControl: "Git",
|
|
21
|
-
* workItemTemplate: "Agile",
|
|
22
|
-
* });
|
|
23
|
-
* const repo = new azuredevops.Git("repo", {
|
|
24
|
-
* projectId: project.id,
|
|
25
|
-
* initialization: {
|
|
26
|
-
* initType: "Clean",
|
|
27
|
-
* },
|
|
28
|
-
* });
|
|
29
|
-
* ```
|
|
30
|
-
* ### Create Fork of another Azure DevOps Git repository
|
|
31
|
-
*
|
|
32
|
-
* ```typescript
|
|
33
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
34
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
35
|
-
*
|
|
36
|
-
* const repo = new azuredevops.Git("repo", {
|
|
37
|
-
* projectId: azuredevops_project.project.id,
|
|
38
|
-
* parentRepositoryId: azuredevops_git_repository.parent.id,
|
|
39
|
-
* initialization: {
|
|
40
|
-
* initType: "Clean",
|
|
41
|
-
* },
|
|
42
|
-
* });
|
|
43
|
-
* ```
|
|
44
|
-
* ### Create Import from another Git repository
|
|
45
|
-
*
|
|
46
|
-
* ```typescript
|
|
47
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
48
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
49
|
-
*
|
|
50
|
-
* const repo = new azuredevops.Git("repo", {
|
|
51
|
-
* projectId: azuredevops_project.project.id,
|
|
52
|
-
* initialization: {
|
|
53
|
-
* initType: "Import",
|
|
54
|
-
* sourceType: "Git",
|
|
55
|
-
* sourceUrl: "https://github.com/microsoft/terraform-provider-azuredevops.git",
|
|
56
|
-
* },
|
|
57
|
-
* });
|
|
58
|
-
* ```
|
|
59
|
-
* ### Import from a Private Repository
|
|
60
|
-
*
|
|
61
|
-
* ```typescript
|
|
62
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
63
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
64
|
-
*
|
|
65
|
-
* const serviceendpoint = new azuredevops.ServiceEndpointGenericGit("serviceendpoint", {
|
|
66
|
-
* projectId: azuredevops_project.project.id,
|
|
67
|
-
* repositoryUrl: "https://dev.azure.com/org/project/_git/repository",
|
|
68
|
-
* username: "username",
|
|
69
|
-
* password: "<password>/<PAT>",
|
|
70
|
-
* serviceEndpointName: "Sample Generic Git",
|
|
71
|
-
* description: "Managed by Terraform",
|
|
72
|
-
* });
|
|
73
|
-
* const repo = new azuredevops.Git("repo", {
|
|
74
|
-
* projectId: azuredevops_project.project.id,
|
|
75
|
-
* initialization: {
|
|
76
|
-
* initType: "Import",
|
|
77
|
-
* sourceType: "Git",
|
|
78
|
-
* sourceUrl: "https://dev.azure.com/example-org/private-repository.git",
|
|
79
|
-
* serviceConnectionId: serviceendpoint.id,
|
|
80
|
-
* },
|
|
81
|
-
* });
|
|
82
|
-
* ```
|
|
83
|
-
* ## Relevant Links
|
|
84
|
-
*
|
|
85
|
-
* - [Azure DevOps Service REST API 5.1 - Git Repositories](https://docs.microsoft.com/en-us/rest/api/azure/devops/git/repositories?view=azure-devops-rest-5.1)
|
|
86
|
-
*
|
|
87
9
|
* ## Import
|
|
88
10
|
*
|
|
89
11
|
* Azure DevOps Repositories can be imported using the repo name or by the repo Guid e.g.
|
|
@@ -97,6 +19,38 @@ const utilities = require("./utilities");
|
|
|
97
19
|
* ```sh
|
|
98
20
|
* $ pulumi import azuredevops:index/git:Git repository projectName/00000000-0000-0000-0000-000000000000
|
|
99
21
|
* ```
|
|
22
|
+
*
|
|
23
|
+
* hcl resource "azuredevops_git_repository" "repo" {
|
|
24
|
+
*
|
|
25
|
+
* project_id = azuredevops_project.project.id
|
|
26
|
+
*
|
|
27
|
+
* name
|
|
28
|
+
*
|
|
29
|
+
* = "Existing Git Repository"
|
|
30
|
+
*
|
|
31
|
+
* default_branch = "refs/heads/main"
|
|
32
|
+
*
|
|
33
|
+
* initialization {
|
|
34
|
+
*
|
|
35
|
+
* init_type = "Clean"
|
|
36
|
+
*
|
|
37
|
+
* }
|
|
38
|
+
*
|
|
39
|
+
* lifecycle {
|
|
40
|
+
*
|
|
41
|
+
* ignore_changes = [
|
|
42
|
+
*
|
|
43
|
+
* # Ignore changes to initialization to support importing existing repositories
|
|
44
|
+
*
|
|
45
|
+
* # Given that a repo now exists, either imported into terraform state or created by terraform,
|
|
46
|
+
*
|
|
47
|
+
* # we don't care for the configuration of initialization against the existing resource
|
|
48
|
+
*
|
|
49
|
+
* initialization,
|
|
50
|
+
*
|
|
51
|
+
* ]
|
|
52
|
+
*
|
|
53
|
+
* } }
|
|
100
54
|
*/
|
|
101
55
|
class Git extends pulumi.CustomResource {
|
|
102
56
|
constructor(name, argsOrState, opts) {
|
package/git.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git.js","sourceRoot":"","sources":["../git.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"git.js","sourceRoot":"","sources":["../git.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,MAAa,GAAI,SAAQ,MAAM,CAAC,cAAc;IAiF1C,YAAY,IAAY,EAAE,WAAgC,EAAE,IAAmC;QAC3F,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAmC,CAAC;YAClD,MAAM,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,MAAM,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,MAAM,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SA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G,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAC5C,KAAK,CAAC,GAAG,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IAChD,CAAC;IA1HD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgB,EAAE,IAAmC;QAC9G,OAAO,IAAI,GAAG,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC1D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,GAAG,CAAC,YAAY,CAAC;IACpD,CAAC;;AA1BL,kBA4HC;AA9GG,gBAAgB;AACO,gBAAY,GAAG,2BAA2B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/azuredevops",
|
|
3
|
-
"version": "v2.3.
|
|
3
|
+
"version": "v2.3.1",
|
|
4
4
|
"description": "A Pulumi package for creating and managing Azure DevOps.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource azuredevops v2.3.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource azuredevops v2.3.1"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
package/package.json.dev
CHANGED
package/repository/git.d.ts
CHANGED
|
@@ -1,84 +1,6 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import { input as inputs, output as outputs } from "../types";
|
|
3
3
|
/**
|
|
4
|
-
* Manages a git repository within Azure DevOps.
|
|
5
|
-
*
|
|
6
|
-
* ## Example Usage
|
|
7
|
-
* ### Create Git repository
|
|
8
|
-
*
|
|
9
|
-
* ```typescript
|
|
10
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
12
|
-
*
|
|
13
|
-
* const project = new azuredevops.Project("project", {
|
|
14
|
-
* visibility: "private",
|
|
15
|
-
* versionControl: "Git",
|
|
16
|
-
* workItemTemplate: "Agile",
|
|
17
|
-
* });
|
|
18
|
-
* const repo = new azuredevops.Git("repo", {
|
|
19
|
-
* projectId: project.id,
|
|
20
|
-
* initialization: {
|
|
21
|
-
* initType: "Clean",
|
|
22
|
-
* },
|
|
23
|
-
* });
|
|
24
|
-
* ```
|
|
25
|
-
* ### Create Fork of another Azure DevOps Git repository
|
|
26
|
-
*
|
|
27
|
-
* ```typescript
|
|
28
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
29
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
30
|
-
*
|
|
31
|
-
* const repo = new azuredevops.Git("repo", {
|
|
32
|
-
* projectId: azuredevops_project.project.id,
|
|
33
|
-
* parentRepositoryId: azuredevops_git_repository.parent.id,
|
|
34
|
-
* initialization: {
|
|
35
|
-
* initType: "Clean",
|
|
36
|
-
* },
|
|
37
|
-
* });
|
|
38
|
-
* ```
|
|
39
|
-
* ### Create Import from another Git repository
|
|
40
|
-
*
|
|
41
|
-
* ```typescript
|
|
42
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
43
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
44
|
-
*
|
|
45
|
-
* const repo = new azuredevops.Git("repo", {
|
|
46
|
-
* projectId: azuredevops_project.project.id,
|
|
47
|
-
* initialization: {
|
|
48
|
-
* initType: "Import",
|
|
49
|
-
* sourceType: "Git",
|
|
50
|
-
* sourceUrl: "https://github.com/microsoft/terraform-provider-azuredevops.git",
|
|
51
|
-
* },
|
|
52
|
-
* });
|
|
53
|
-
* ```
|
|
54
|
-
* ### Import from a Private Repository
|
|
55
|
-
*
|
|
56
|
-
* ```typescript
|
|
57
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
58
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
59
|
-
*
|
|
60
|
-
* const serviceendpoint = new azuredevops.ServiceEndpointGenericGit("serviceendpoint", {
|
|
61
|
-
* projectId: azuredevops_project.project.id,
|
|
62
|
-
* repositoryUrl: "https://dev.azure.com/org/project/_git/repository",
|
|
63
|
-
* username: "username",
|
|
64
|
-
* password: "<password>/<PAT>",
|
|
65
|
-
* serviceEndpointName: "Sample Generic Git",
|
|
66
|
-
* description: "Managed by Terraform",
|
|
67
|
-
* });
|
|
68
|
-
* const repo = new azuredevops.Git("repo", {
|
|
69
|
-
* projectId: azuredevops_project.project.id,
|
|
70
|
-
* initialization: {
|
|
71
|
-
* initType: "Import",
|
|
72
|
-
* sourceType: "Git",
|
|
73
|
-
* sourceUrl: "https://dev.azure.com/example-org/private-repository.git",
|
|
74
|
-
* serviceConnectionId: serviceendpoint.id,
|
|
75
|
-
* },
|
|
76
|
-
* });
|
|
77
|
-
* ```
|
|
78
|
-
* ## Relevant Links
|
|
79
|
-
*
|
|
80
|
-
* - [Azure DevOps Service REST API 5.1 - Git Repositories](https://docs.microsoft.com/en-us/rest/api/azure/devops/git/repositories?view=azure-devops-rest-5.1)
|
|
81
|
-
*
|
|
82
4
|
* ## Import
|
|
83
5
|
*
|
|
84
6
|
* Azure DevOps Repositories can be imported using the repo name or by the repo Guid e.g.
|
|
@@ -93,6 +15,38 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
93
15
|
* $ pulumi import azuredevops:Repository/git:Git repository projectName/00000000-0000-0000-0000-000000000000
|
|
94
16
|
* ```
|
|
95
17
|
*
|
|
18
|
+
* hcl resource "azuredevops_git_repository" "repo" {
|
|
19
|
+
*
|
|
20
|
+
* project_id = azuredevops_project.project.id
|
|
21
|
+
*
|
|
22
|
+
* name
|
|
23
|
+
*
|
|
24
|
+
* = "Existing Git Repository"
|
|
25
|
+
*
|
|
26
|
+
* default_branch = "refs/heads/main"
|
|
27
|
+
*
|
|
28
|
+
* initialization {
|
|
29
|
+
*
|
|
30
|
+
* init_type = "Clean"
|
|
31
|
+
*
|
|
32
|
+
* }
|
|
33
|
+
*
|
|
34
|
+
* lifecycle {
|
|
35
|
+
*
|
|
36
|
+
* ignore_changes = [
|
|
37
|
+
*
|
|
38
|
+
* # Ignore changes to initialization to support importing existing repositories
|
|
39
|
+
*
|
|
40
|
+
* # Given that a repo now exists, either imported into terraform state or created by terraform,
|
|
41
|
+
*
|
|
42
|
+
* # we don't care for the configuration of initialization against the existing resource
|
|
43
|
+
*
|
|
44
|
+
* initialization,
|
|
45
|
+
*
|
|
46
|
+
* ]
|
|
47
|
+
*
|
|
48
|
+
* } }
|
|
49
|
+
*
|
|
96
50
|
* @deprecated azuredevops.repository.Git has been deprecated in favor of azuredevops.Git
|
|
97
51
|
*/
|
|
98
52
|
export declare class Git extends pulumi.CustomResource {
|
package/repository/git.js
CHANGED
|
@@ -6,84 +6,6 @@ exports.Git = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
-
* Manages a git repository within Azure DevOps.
|
|
10
|
-
*
|
|
11
|
-
* ## Example Usage
|
|
12
|
-
* ### Create Git repository
|
|
13
|
-
*
|
|
14
|
-
* ```typescript
|
|
15
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
17
|
-
*
|
|
18
|
-
* const project = new azuredevops.Project("project", {
|
|
19
|
-
* visibility: "private",
|
|
20
|
-
* versionControl: "Git",
|
|
21
|
-
* workItemTemplate: "Agile",
|
|
22
|
-
* });
|
|
23
|
-
* const repo = new azuredevops.Git("repo", {
|
|
24
|
-
* projectId: project.id,
|
|
25
|
-
* initialization: {
|
|
26
|
-
* initType: "Clean",
|
|
27
|
-
* },
|
|
28
|
-
* });
|
|
29
|
-
* ```
|
|
30
|
-
* ### Create Fork of another Azure DevOps Git repository
|
|
31
|
-
*
|
|
32
|
-
* ```typescript
|
|
33
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
34
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
35
|
-
*
|
|
36
|
-
* const repo = new azuredevops.Git("repo", {
|
|
37
|
-
* projectId: azuredevops_project.project.id,
|
|
38
|
-
* parentRepositoryId: azuredevops_git_repository.parent.id,
|
|
39
|
-
* initialization: {
|
|
40
|
-
* initType: "Clean",
|
|
41
|
-
* },
|
|
42
|
-
* });
|
|
43
|
-
* ```
|
|
44
|
-
* ### Create Import from another Git repository
|
|
45
|
-
*
|
|
46
|
-
* ```typescript
|
|
47
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
48
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
49
|
-
*
|
|
50
|
-
* const repo = new azuredevops.Git("repo", {
|
|
51
|
-
* projectId: azuredevops_project.project.id,
|
|
52
|
-
* initialization: {
|
|
53
|
-
* initType: "Import",
|
|
54
|
-
* sourceType: "Git",
|
|
55
|
-
* sourceUrl: "https://github.com/microsoft/terraform-provider-azuredevops.git",
|
|
56
|
-
* },
|
|
57
|
-
* });
|
|
58
|
-
* ```
|
|
59
|
-
* ### Import from a Private Repository
|
|
60
|
-
*
|
|
61
|
-
* ```typescript
|
|
62
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
63
|
-
* import * as azuredevops from "@pulumi/azuredevops";
|
|
64
|
-
*
|
|
65
|
-
* const serviceendpoint = new azuredevops.ServiceEndpointGenericGit("serviceendpoint", {
|
|
66
|
-
* projectId: azuredevops_project.project.id,
|
|
67
|
-
* repositoryUrl: "https://dev.azure.com/org/project/_git/repository",
|
|
68
|
-
* username: "username",
|
|
69
|
-
* password: "<password>/<PAT>",
|
|
70
|
-
* serviceEndpointName: "Sample Generic Git",
|
|
71
|
-
* description: "Managed by Terraform",
|
|
72
|
-
* });
|
|
73
|
-
* const repo = new azuredevops.Git("repo", {
|
|
74
|
-
* projectId: azuredevops_project.project.id,
|
|
75
|
-
* initialization: {
|
|
76
|
-
* initType: "Import",
|
|
77
|
-
* sourceType: "Git",
|
|
78
|
-
* sourceUrl: "https://dev.azure.com/example-org/private-repository.git",
|
|
79
|
-
* serviceConnectionId: serviceendpoint.id,
|
|
80
|
-
* },
|
|
81
|
-
* });
|
|
82
|
-
* ```
|
|
83
|
-
* ## Relevant Links
|
|
84
|
-
*
|
|
85
|
-
* - [Azure DevOps Service REST API 5.1 - Git Repositories](https://docs.microsoft.com/en-us/rest/api/azure/devops/git/repositories?view=azure-devops-rest-5.1)
|
|
86
|
-
*
|
|
87
9
|
* ## Import
|
|
88
10
|
*
|
|
89
11
|
* Azure DevOps Repositories can be imported using the repo name or by the repo Guid e.g.
|
|
@@ -98,6 +20,38 @@ const utilities = require("../utilities");
|
|
|
98
20
|
* $ pulumi import azuredevops:Repository/git:Git repository projectName/00000000-0000-0000-0000-000000000000
|
|
99
21
|
* ```
|
|
100
22
|
*
|
|
23
|
+
* hcl resource "azuredevops_git_repository" "repo" {
|
|
24
|
+
*
|
|
25
|
+
* project_id = azuredevops_project.project.id
|
|
26
|
+
*
|
|
27
|
+
* name
|
|
28
|
+
*
|
|
29
|
+
* = "Existing Git Repository"
|
|
30
|
+
*
|
|
31
|
+
* default_branch = "refs/heads/main"
|
|
32
|
+
*
|
|
33
|
+
* initialization {
|
|
34
|
+
*
|
|
35
|
+
* init_type = "Clean"
|
|
36
|
+
*
|
|
37
|
+
* }
|
|
38
|
+
*
|
|
39
|
+
* lifecycle {
|
|
40
|
+
*
|
|
41
|
+
* ignore_changes = [
|
|
42
|
+
*
|
|
43
|
+
* # Ignore changes to initialization to support importing existing repositories
|
|
44
|
+
*
|
|
45
|
+
* # Given that a repo now exists, either imported into terraform state or created by terraform,
|
|
46
|
+
*
|
|
47
|
+
* # we don't care for the configuration of initialization against the existing resource
|
|
48
|
+
*
|
|
49
|
+
* initialization,
|
|
50
|
+
*
|
|
51
|
+
* ]
|
|
52
|
+
*
|
|
53
|
+
* } }
|
|
54
|
+
*
|
|
101
55
|
* @deprecated azuredevops.repository.Git has been deprecated in favor of azuredevops.Git
|
|
102
56
|
*/
|
|
103
57
|
class Git extends pulumi.CustomResource {
|
package/repository/git.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git.js","sourceRoot":"","sources":["../../repository/git.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"git.js","sourceRoot":"","sources":["../../repository/git.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,MAAa,GAAI,SAAQ,MAAM,CAAC,cAAc;IAmF1C,6FAA6F;IAC7F,YAAY,IAAY,EAAE,WAAgC,EAAE,IAAmC;QAC3F,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,+FAA+F,CAAC,CAAA;QAChH,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAmC,CAAC;YAClD,MAAM,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,MAAM,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC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AAC;SACxE;QACD,KAAK,CAAC,GAAG,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IAChD,CAAC;IA5HD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgB,EAAE,IAAmC;QAC9G,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,+FAA+F,CAAC,CAAA;QAChH,OAAO,IAAI,GAAG,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC1D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,GAAG,CAAC,YAAY,CAAC;IACpD,CAAC;;AA3BL,kBA8HC;AA/GG,gBAAgB;AACO,gBAAY,GAAG,gCAAgC,CAAC"}
|
|
@@ -2,6 +2,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
/**
|
|
3
3
|
* Manages an Azure DevOps service endpoint within Azure DevOps.
|
|
4
4
|
*
|
|
5
|
+
* > **Note** Prerequisite: Extension [Configurable Pipeline Runner](https://marketplace.visualstudio.com/items?itemName=CSE-DevOps.RunPipelines) has been installed for the organization.
|
|
6
|
+
*
|
|
5
7
|
* ## Example Usage
|
|
6
8
|
*
|
|
7
9
|
* ```typescript
|
|
@@ -8,6 +8,8 @@ const utilities = require("./utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* Manages an Azure DevOps service endpoint within Azure DevOps.
|
|
10
10
|
*
|
|
11
|
+
* > **Note** Prerequisite: Extension [Configurable Pipeline Runner](https://marketplace.visualstudio.com/items?itemName=CSE-DevOps.RunPipelines) has been installed for the organization.
|
|
12
|
+
*
|
|
11
13
|
* ## Example Usage
|
|
12
14
|
*
|
|
13
15
|
* ```typescript
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serviceEndpointAzureDevOps.js","sourceRoot":"","sources":["../serviceEndpointAzureDevOps.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"serviceEndpointAzureDevOps.js","sourceRoot":"","sources":["../serviceEndpointAzureDevOps.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAa,0BAA2B,SAAQ,MAAM,CAAC,cAAc;IA+DjE,YAAY,IAAY,EAAE,WAA8E,EAAE,IAAmC;QACzI,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA0D,CAAC;YACzE,MAAM,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,MAAM,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,MAAM,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YACpD,MAAM,CAAC,qBAAqB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,MAAM,CAAC,yBAAyB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC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I,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjF,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,0BAA0B,CAAC,YAAY,CAAC;IAC3E,CAAC;;AA1BL,gEA2GC;AA7FG,gBAAgB;AACO,uCAAY,GAAG,yEAAyE,CAAC"}
|
|
@@ -60,7 +60,7 @@ export declare class ServiceEndpointGenericGit extends pulumi.CustomResource {
|
|
|
60
60
|
*/
|
|
61
61
|
readonly enablePipelinesAccess: pulumi.Output<boolean | undefined>;
|
|
62
62
|
/**
|
|
63
|
-
* The
|
|
63
|
+
* The PAT or password used to authenticate to the git repository.
|
|
64
64
|
*/
|
|
65
65
|
readonly password: pulumi.Output<string | undefined>;
|
|
66
66
|
/**
|
|
@@ -80,7 +80,7 @@ export declare class ServiceEndpointGenericGit extends pulumi.CustomResource {
|
|
|
80
80
|
*/
|
|
81
81
|
readonly serviceEndpointName: pulumi.Output<string>;
|
|
82
82
|
/**
|
|
83
|
-
* The username used to authenticate to the git repository
|
|
83
|
+
* The username used to authenticate to the git repository.
|
|
84
84
|
*/
|
|
85
85
|
readonly username: pulumi.Output<string | undefined>;
|
|
86
86
|
/**
|
|
@@ -105,7 +105,7 @@ export interface ServiceEndpointGenericGitState {
|
|
|
105
105
|
*/
|
|
106
106
|
enablePipelinesAccess?: pulumi.Input<boolean>;
|
|
107
107
|
/**
|
|
108
|
-
* The
|
|
108
|
+
* The PAT or password used to authenticate to the git repository.
|
|
109
109
|
*/
|
|
110
110
|
password?: pulumi.Input<string>;
|
|
111
111
|
/**
|
|
@@ -125,7 +125,7 @@ export interface ServiceEndpointGenericGitState {
|
|
|
125
125
|
*/
|
|
126
126
|
serviceEndpointName?: pulumi.Input<string>;
|
|
127
127
|
/**
|
|
128
|
-
* The username used to authenticate to the git repository
|
|
128
|
+
* The username used to authenticate to the git repository.
|
|
129
129
|
*/
|
|
130
130
|
username?: pulumi.Input<string>;
|
|
131
131
|
}
|
|
@@ -142,7 +142,7 @@ export interface ServiceEndpointGenericGitArgs {
|
|
|
142
142
|
*/
|
|
143
143
|
enablePipelinesAccess?: pulumi.Input<boolean>;
|
|
144
144
|
/**
|
|
145
|
-
* The
|
|
145
|
+
* The PAT or password used to authenticate to the git repository.
|
|
146
146
|
*/
|
|
147
147
|
password?: pulumi.Input<string>;
|
|
148
148
|
/**
|
|
@@ -158,7 +158,7 @@ export interface ServiceEndpointGenericGitArgs {
|
|
|
158
158
|
*/
|
|
159
159
|
serviceEndpointName: pulumi.Input<string>;
|
|
160
160
|
/**
|
|
161
|
-
* The username used to authenticate to the git repository
|
|
161
|
+
* The username used to authenticate to the git repository.
|
|
162
162
|
*/
|
|
163
163
|
username?: pulumi.Input<string>;
|
|
164
164
|
}
|
package/types/input.d.ts
CHANGED
|
@@ -203,10 +203,17 @@ export interface BranchPolicyStatusCheckSettings {
|
|
|
203
203
|
* If a path filter is set, the policy will only apply when files which match the filter are changes. Not setting this field means that the policy will always apply. You can specify absolute paths and wildcards. Example: `["/WebApp/Models/Data.cs", "/WebApp/*", "*.cs"]`. Paths prefixed with "!" are excluded. Example: `["/WebApp/*", "!/WebApp/Tests/*"]`. Order is significant.
|
|
204
204
|
*/
|
|
205
205
|
filenamePatterns?: pulumi.Input<pulumi.Input<string>[]>;
|
|
206
|
+
/**
|
|
207
|
+
* The genre of the status to check (see [Microsoft Documentation](https://docs.microsoft.com/en-us/azure/devops/repos/git/pull-request-status?view=azure-devops#status-policy))
|
|
208
|
+
*/
|
|
209
|
+
genre?: pulumi.Input<string>;
|
|
206
210
|
/**
|
|
207
211
|
* Reset status whenever there are new changes.
|
|
208
212
|
*/
|
|
209
213
|
invalidateOnUpdate?: pulumi.Input<boolean>;
|
|
214
|
+
/**
|
|
215
|
+
* The status name to check.
|
|
216
|
+
*/
|
|
210
217
|
name: pulumi.Input<string>;
|
|
211
218
|
/**
|
|
212
219
|
* Controls which repositories and branches the policy will be enabled for. This block must be defined
|
|
@@ -398,6 +405,31 @@ export interface BuildDefinitionRepository {
|
|
|
398
405
|
*/
|
|
399
406
|
ymlPath: pulumi.Input<string>;
|
|
400
407
|
}
|
|
408
|
+
export interface BuildDefinitionSchedule {
|
|
409
|
+
/**
|
|
410
|
+
* block supports the following:
|
|
411
|
+
*/
|
|
412
|
+
branchFilters?: pulumi.Input<pulumi.Input<inputs.BuildDefinitionScheduleBranchFilter>[]>;
|
|
413
|
+
daysToBuilds: pulumi.Input<pulumi.Input<string>[]>;
|
|
414
|
+
/**
|
|
415
|
+
* The ID of the schedule job
|
|
416
|
+
*/
|
|
417
|
+
scheduleJobId?: pulumi.Input<string>;
|
|
418
|
+
scheduleOnlyWithChanges?: pulumi.Input<boolean>;
|
|
419
|
+
startHours?: pulumi.Input<number>;
|
|
420
|
+
startMinutes?: pulumi.Input<number>;
|
|
421
|
+
timeZone?: pulumi.Input<string>;
|
|
422
|
+
}
|
|
423
|
+
export interface BuildDefinitionScheduleBranchFilter {
|
|
424
|
+
/**
|
|
425
|
+
* List of branch patterns to exclude.
|
|
426
|
+
*/
|
|
427
|
+
excludes?: pulumi.Input<pulumi.Input<string>[]>;
|
|
428
|
+
/**
|
|
429
|
+
* List of branch patterns to include.
|
|
430
|
+
*/
|
|
431
|
+
includes?: pulumi.Input<pulumi.Input<string>[]>;
|
|
432
|
+
}
|
|
401
433
|
export interface BuildDefinitionVariable {
|
|
402
434
|
/**
|
|
403
435
|
* True if the variable can be overridden. Defaults to `true`.
|
|
@@ -788,6 +820,31 @@ export declare namespace Build {
|
|
|
788
820
|
*/
|
|
789
821
|
ymlPath: pulumi.Input<string>;
|
|
790
822
|
}
|
|
823
|
+
interface BuildDefinitionSchedule {
|
|
824
|
+
/**
|
|
825
|
+
* block supports the following:
|
|
826
|
+
*/
|
|
827
|
+
branchFilters?: pulumi.Input<pulumi.Input<inputs.Build.BuildDefinitionScheduleBranchFilter>[]>;
|
|
828
|
+
daysToBuilds: pulumi.Input<pulumi.Input<string>[]>;
|
|
829
|
+
/**
|
|
830
|
+
* The ID of the schedule job
|
|
831
|
+
*/
|
|
832
|
+
scheduleJobId?: pulumi.Input<string>;
|
|
833
|
+
scheduleOnlyWithChanges?: pulumi.Input<boolean>;
|
|
834
|
+
startHours?: pulumi.Input<number>;
|
|
835
|
+
startMinutes?: pulumi.Input<number>;
|
|
836
|
+
timeZone?: pulumi.Input<string>;
|
|
837
|
+
}
|
|
838
|
+
interface BuildDefinitionScheduleBranchFilter {
|
|
839
|
+
/**
|
|
840
|
+
* List of branch patterns to exclude.
|
|
841
|
+
*/
|
|
842
|
+
excludes?: pulumi.Input<pulumi.Input<string>[]>;
|
|
843
|
+
/**
|
|
844
|
+
* List of branch patterns to include.
|
|
845
|
+
*/
|
|
846
|
+
includes?: pulumi.Input<pulumi.Input<string>[]>;
|
|
847
|
+
}
|
|
791
848
|
interface BuildDefinitionVariable {
|
|
792
849
|
/**
|
|
793
850
|
* True if the variable can be overridden. Defaults to `true`.
|
package/types/output.d.ts
CHANGED
|
@@ -202,10 +202,17 @@ export interface BranchPolicyStatusCheckSettings {
|
|
|
202
202
|
* If a path filter is set, the policy will only apply when files which match the filter are changes. Not setting this field means that the policy will always apply. You can specify absolute paths and wildcards. Example: `["/WebApp/Models/Data.cs", "/WebApp/*", "*.cs"]`. Paths prefixed with "!" are excluded. Example: `["/WebApp/*", "!/WebApp/Tests/*"]`. Order is significant.
|
|
203
203
|
*/
|
|
204
204
|
filenamePatterns?: string[];
|
|
205
|
+
/**
|
|
206
|
+
* The genre of the status to check (see [Microsoft Documentation](https://docs.microsoft.com/en-us/azure/devops/repos/git/pull-request-status?view=azure-devops#status-policy))
|
|
207
|
+
*/
|
|
208
|
+
genre?: string;
|
|
205
209
|
/**
|
|
206
210
|
* Reset status whenever there are new changes.
|
|
207
211
|
*/
|
|
208
212
|
invalidateOnUpdate?: boolean;
|
|
213
|
+
/**
|
|
214
|
+
* The status name to check.
|
|
215
|
+
*/
|
|
209
216
|
name: string;
|
|
210
217
|
/**
|
|
211
218
|
* Controls which repositories and branches the policy will be enabled for. This block must be defined
|
|
@@ -397,6 +404,31 @@ export interface BuildDefinitionRepository {
|
|
|
397
404
|
*/
|
|
398
405
|
ymlPath: string;
|
|
399
406
|
}
|
|
407
|
+
export interface BuildDefinitionSchedule {
|
|
408
|
+
/**
|
|
409
|
+
* block supports the following:
|
|
410
|
+
*/
|
|
411
|
+
branchFilters?: outputs.BuildDefinitionScheduleBranchFilter[];
|
|
412
|
+
daysToBuilds: string[];
|
|
413
|
+
/**
|
|
414
|
+
* The ID of the schedule job
|
|
415
|
+
*/
|
|
416
|
+
scheduleJobId: string;
|
|
417
|
+
scheduleOnlyWithChanges?: boolean;
|
|
418
|
+
startHours?: number;
|
|
419
|
+
startMinutes?: number;
|
|
420
|
+
timeZone?: string;
|
|
421
|
+
}
|
|
422
|
+
export interface BuildDefinitionScheduleBranchFilter {
|
|
423
|
+
/**
|
|
424
|
+
* List of branch patterns to exclude.
|
|
425
|
+
*/
|
|
426
|
+
excludes?: string[];
|
|
427
|
+
/**
|
|
428
|
+
* List of branch patterns to include.
|
|
429
|
+
*/
|
|
430
|
+
includes?: string[];
|
|
431
|
+
}
|
|
400
432
|
export interface BuildDefinitionVariable {
|
|
401
433
|
/**
|
|
402
434
|
* True if the variable can be overridden. Defaults to `true`.
|
|
@@ -551,6 +583,10 @@ export interface GetUsersUser {
|
|
|
551
583
|
* This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider.
|
|
552
584
|
*/
|
|
553
585
|
displayName: string;
|
|
586
|
+
/**
|
|
587
|
+
* The user ID.
|
|
588
|
+
*/
|
|
589
|
+
id: string;
|
|
554
590
|
/**
|
|
555
591
|
* The email address of record for a given graph member. This may be different than the principal name.
|
|
556
592
|
*/
|
|
@@ -951,6 +987,31 @@ export declare namespace Build {
|
|
|
951
987
|
*/
|
|
952
988
|
ymlPath: string;
|
|
953
989
|
}
|
|
990
|
+
interface BuildDefinitionSchedule {
|
|
991
|
+
/**
|
|
992
|
+
* block supports the following:
|
|
993
|
+
*/
|
|
994
|
+
branchFilters?: outputs.Build.BuildDefinitionScheduleBranchFilter[];
|
|
995
|
+
daysToBuilds: string[];
|
|
996
|
+
/**
|
|
997
|
+
* The ID of the schedule job
|
|
998
|
+
*/
|
|
999
|
+
scheduleJobId: string;
|
|
1000
|
+
scheduleOnlyWithChanges?: boolean;
|
|
1001
|
+
startHours?: number;
|
|
1002
|
+
startMinutes?: number;
|
|
1003
|
+
timeZone?: string;
|
|
1004
|
+
}
|
|
1005
|
+
interface BuildDefinitionScheduleBranchFilter {
|
|
1006
|
+
/**
|
|
1007
|
+
* List of branch patterns to exclude.
|
|
1008
|
+
*/
|
|
1009
|
+
excludes?: string[];
|
|
1010
|
+
/**
|
|
1011
|
+
* List of branch patterns to include.
|
|
1012
|
+
*/
|
|
1013
|
+
includes?: string[];
|
|
1014
|
+
}
|
|
954
1015
|
interface BuildDefinitionVariable {
|
|
955
1016
|
/**
|
|
956
1017
|
* True if the variable can be overridden. Defaults to `true`.
|
|
@@ -1004,6 +1065,10 @@ export declare namespace Identities {
|
|
|
1004
1065
|
* This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider.
|
|
1005
1066
|
*/
|
|
1006
1067
|
displayName: string;
|
|
1068
|
+
/**
|
|
1069
|
+
* The user ID.
|
|
1070
|
+
*/
|
|
1071
|
+
id: string;
|
|
1007
1072
|
/**
|
|
1008
1073
|
* The email address of record for a given graph member. This may be different than the principal name.
|
|
1009
1074
|
*/
|