@pulumiverse/buildkite 2.3.1 → 3.0.2
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/README.md +5 -0
- package/agent/agentToken.d.ts +13 -19
- package/agent/agentToken.js +6 -6
- package/agent/agentToken.js.map +1 -1
- package/cluster/cluster.d.ts +76 -20
- package/cluster/cluster.js +56 -6
- package/cluster/cluster.js.map +1 -1
- package/cluster/clusterAgentToken.d.ts +51 -15
- package/cluster/clusterAgentToken.js +28 -8
- package/cluster/clusterAgentToken.js.map +1 -1
- package/cluster/clusterDefaultQueue.d.ts +132 -0
- package/cluster/clusterDefaultQueue.js +123 -0
- package/cluster/clusterDefaultQueue.js.map +1 -0
- package/cluster/clusterQueue.d.ts +44 -50
- package/cluster/clusterQueue.js +37 -43
- package/cluster/clusterQueue.js.map +1 -1
- package/cluster/getCluster.d.ts +52 -5
- package/cluster/getCluster.js +44 -0
- package/cluster/getCluster.js.map +1 -1
- package/cluster/index.d.ts +3 -0
- package/cluster/index.js +6 -1
- package/cluster/index.js.map +1 -1
- package/config/vars.d.ts +9 -7
- package/config/vars.js +6 -0
- package/config/vars.js.map +1 -1
- package/getMeta.d.ts +55 -1
- package/getMeta.js +55 -1
- package/getMeta.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.js +3 -2
- package/index.js.map +1 -1
- package/organization/banner.d.ts +106 -0
- package/organization/banner.js +104 -0
- package/organization/banner.js.map +1 -0
- package/organization/getOrganization.d.ts +12 -21
- package/organization/getOrganization.js +9 -21
- package/organization/getOrganization.js.map +1 -1
- package/organization/index.d.ts +4 -3
- package/organization/index.js +8 -7
- package/organization/index.js.map +1 -1
- package/organization/organization.d.ts +31 -13
- package/organization/organization.js +12 -10
- package/organization/organization.js.map +1 -1
- package/package.json +2 -3
- package/package.json.bak +1 -2
- package/pipeline/getPipeline.d.ts +26 -18
- package/pipeline/getPipeline.js +12 -14
- package/pipeline/getPipeline.js.map +1 -1
- package/pipeline/getSignedSteps.d.ts +143 -0
- package/pipeline/getSignedSteps.js +95 -0
- package/pipeline/getSignedSteps.js.map +1 -0
- package/pipeline/getTemplate.d.ts +120 -0
- package/pipeline/getTemplate.js +83 -0
- package/pipeline/getTemplate.js.map +1 -0
- package/pipeline/index.d.ts +9 -0
- package/pipeline/index.js +12 -1
- package/pipeline/index.js.map +1 -1
- package/pipeline/pipeline.d.ts +116 -101
- package/pipeline/pipeline.js +18 -16
- package/pipeline/pipeline.js.map +1 -1
- package/pipeline/schedule.d.ts +64 -53
- package/pipeline/schedule.js +38 -27
- package/pipeline/schedule.js.map +1 -1
- package/pipeline/team.d.ts +42 -31
- package/pipeline/team.js +34 -23
- package/pipeline/team.js.map +1 -1
- package/pipeline/template.d.ts +157 -0
- package/pipeline/template.js +125 -0
- package/pipeline/template.js.map +1 -0
- package/provider.d.ts +23 -9
- package/provider.js +1 -0
- package/provider.js.map +1 -1
- package/team/getTeam.d.ts +33 -34
- package/team/getTeam.js +18 -16
- package/team/getTeam.js.map +1 -1
- package/team/member.d.ts +44 -44
- package/team/member.js +33 -33
- package/team/team.d.ts +45 -43
- package/team/team.js +26 -24
- package/team/team.js.map +1 -1
- package/testsuite/team.d.ts +48 -52
- package/testsuite/team.js +43 -47
- package/testsuite/team.js.map +1 -1
- package/testsuite/testSuite.d.ts +21 -27
- package/testsuite/testSuite.js +6 -12
- package/testsuite/testSuite.js.map +1 -1
- package/types/input.d.ts +37 -21
- package/types/output.d.ts +34 -18
- package/utilities.d.ts +4 -0
- package/utilities.js +33 -1
- package/utilities.js.map +1 -1
- package/organization/settings.d.ts +0 -80
- package/organization/settings.js +0 -81
- package/organization/settings.js.map +0 -1
- package/scripts/install-pulumi-plugin.js +0 -26
package/pipeline/pipeline.d.ts
CHANGED
|
@@ -2,21 +2,19 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "../types/input";
|
|
3
3
|
import * as outputs from "../types/output";
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* Pipelines can be imported using the `GraphQL ID` (not UUID), e.g.
|
|
5
|
+
* This resource allows you to create and manage pipelines for repositories.
|
|
8
6
|
*
|
|
9
|
-
*
|
|
10
|
-
* $ pulumi import buildkite:Pipeline/pipeline:Pipeline fleet UGlwZWxpbmUtLS00MzVjYWQ1OC1lODFkLTQ1YWYtODYzNy1iMWNmODA3MDIzOGQ=
|
|
11
|
-
* ```
|
|
7
|
+
* More information on pipelines can be found in the [documentation](https://buildkite.com/docs/pipelines).
|
|
12
8
|
*
|
|
13
|
-
*
|
|
9
|
+
* ## Import
|
|
14
10
|
*
|
|
15
|
-
*
|
|
11
|
+
* import a pipeline resource using the pipelines GraphQL ID
|
|
16
12
|
*
|
|
17
|
-
*
|
|
13
|
+
* GraphQL ID for a pipeline can be found on its settings page
|
|
18
14
|
*
|
|
19
|
-
*
|
|
15
|
+
* ```sh
|
|
16
|
+
* $ pulumi import buildkite:Pipeline/pipeline:Pipeline pipeline UGlwZWxpbmUtLS00MzVjYWQ1OC1lODFkLTQ1YWYtODYzNy1iMWNmODA3MDIzOGQ=
|
|
17
|
+
* ```
|
|
20
18
|
*/
|
|
21
19
|
export declare class Pipeline extends pulumi.CustomResource {
|
|
22
20
|
/**
|
|
@@ -35,92 +33,99 @@ export declare class Pipeline extends pulumi.CustomResource {
|
|
|
35
33
|
*/
|
|
36
34
|
static isInstance(obj: any): obj is Pipeline;
|
|
37
35
|
/**
|
|
38
|
-
*
|
|
36
|
+
* Whether rebuilds are allowed for this pipeline.
|
|
39
37
|
*/
|
|
40
38
|
readonly allowRebuilds: pulumi.Output<boolean>;
|
|
41
39
|
/**
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
readonly archiveOnDelete: pulumi.Output<boolean>;
|
|
45
|
-
/**
|
|
46
|
-
* The pipeline's last build status so you can display build status badge.
|
|
40
|
+
* The badge URL showing build state.
|
|
47
41
|
*/
|
|
48
42
|
readonly badgeUrl: pulumi.Output<string>;
|
|
49
43
|
/**
|
|
50
|
-
*
|
|
44
|
+
* Configure the pipeline to only build on this branch conditional.
|
|
51
45
|
*/
|
|
52
46
|
readonly branchConfiguration: pulumi.Output<string | undefined>;
|
|
53
47
|
/**
|
|
54
|
-
*
|
|
48
|
+
* Whether to cancel builds when a new commit is pushed to a matching branch.
|
|
55
49
|
*/
|
|
56
50
|
readonly cancelIntermediateBuilds: pulumi.Output<boolean>;
|
|
57
51
|
/**
|
|
58
|
-
*
|
|
52
|
+
* Filter the `cancel_intermediate_builds` setting based on this branch condition.
|
|
59
53
|
*/
|
|
60
54
|
readonly cancelIntermediateBuildsBranchFilter: pulumi.Output<string>;
|
|
61
55
|
/**
|
|
62
|
-
*
|
|
56
|
+
* Attach this pipeline to the given cluster GraphQL ID.
|
|
63
57
|
*/
|
|
64
58
|
readonly clusterId: pulumi.Output<string | undefined>;
|
|
65
59
|
/**
|
|
66
|
-
*
|
|
60
|
+
* A color hex code to represent this pipeline.
|
|
61
|
+
*/
|
|
62
|
+
readonly color: pulumi.Output<string | undefined>;
|
|
63
|
+
/**
|
|
64
|
+
* Default branch of the pipeline.
|
|
67
65
|
*/
|
|
68
66
|
readonly defaultBranch: pulumi.Output<string>;
|
|
69
67
|
/**
|
|
70
|
-
* The
|
|
68
|
+
* The GraphQL ID of the team to use as the default owner of the pipeline.
|
|
71
69
|
*/
|
|
72
|
-
readonly
|
|
70
|
+
readonly defaultTeamId: pulumi.Output<string | undefined>;
|
|
73
71
|
/**
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
* @deprecated Deletion protection will be removed in a future release. A similar solution already exists and is supported by Terraform. See https://developer.hashicorp.com/terraform/language/meta-arguments/lifecycle.
|
|
72
|
+
* Set pipeline wide timeout for command steps.
|
|
77
73
|
*/
|
|
78
|
-
readonly
|
|
74
|
+
readonly defaultTimeoutInMinutes: pulumi.Output<number>;
|
|
79
75
|
/**
|
|
80
|
-
*
|
|
76
|
+
* Description for the pipeline. Can include emoji 🙌.
|
|
81
77
|
*/
|
|
82
78
|
readonly description: pulumi.Output<string>;
|
|
83
79
|
/**
|
|
84
|
-
*
|
|
80
|
+
* An emoji that represents this pipeline.
|
|
81
|
+
*/
|
|
82
|
+
readonly emoji: pulumi.Output<string | undefined>;
|
|
83
|
+
/**
|
|
84
|
+
* Set pipeline wide maximum timeout for command steps.
|
|
85
85
|
*/
|
|
86
86
|
readonly maximumTimeoutInMinutes: pulumi.Output<number>;
|
|
87
87
|
/**
|
|
88
|
-
*
|
|
88
|
+
* Name to give the pipeline.
|
|
89
89
|
*/
|
|
90
90
|
readonly name: pulumi.Output<string>;
|
|
91
91
|
/**
|
|
92
|
-
*
|
|
92
|
+
* The GraphQL ID of the pipeline template applied to this pipeline.
|
|
93
|
+
*/
|
|
94
|
+
readonly pipelineTemplateId: pulumi.Output<string | undefined>;
|
|
95
|
+
/**
|
|
96
|
+
* Control settings depending on the VCS provider used in `repository`.
|
|
93
97
|
*/
|
|
94
98
|
readonly providerSettings: pulumi.Output<outputs.Pipeline.PipelineProviderSettings | undefined>;
|
|
95
99
|
/**
|
|
96
|
-
*
|
|
100
|
+
* URL to the repository this pipeline is configured for.
|
|
97
101
|
*/
|
|
98
102
|
readonly repository: pulumi.Output<string>;
|
|
99
103
|
/**
|
|
100
|
-
*
|
|
104
|
+
* Whether to skip queued builds if a new commit is pushed to a matching branch.
|
|
101
105
|
*/
|
|
102
106
|
readonly skipIntermediateBuilds: pulumi.Output<boolean>;
|
|
103
107
|
/**
|
|
104
|
-
*
|
|
108
|
+
* Filter the `skip_intermediate_builds` setting based on this branch condition.
|
|
105
109
|
*/
|
|
106
110
|
readonly skipIntermediateBuildsBranchFilter: pulumi.Output<string>;
|
|
107
111
|
/**
|
|
108
|
-
* The slug
|
|
112
|
+
* The slug generated for the pipeline.
|
|
109
113
|
*/
|
|
110
114
|
readonly slug: pulumi.Output<string>;
|
|
111
115
|
/**
|
|
112
|
-
* The
|
|
116
|
+
* The YAML steps to configure for the pipeline. Defaults to `buildkite-agent pipeline upload`.
|
|
113
117
|
*/
|
|
114
118
|
readonly steps: pulumi.Output<string>;
|
|
119
|
+
/**
|
|
120
|
+
* Tags to attribute to the pipeline. Useful for searching by in the UI.
|
|
121
|
+
*/
|
|
115
122
|
readonly tags: pulumi.Output<string[]>;
|
|
116
123
|
/**
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
* @deprecated This block is deprecated. Please use `buildkite_pipeline_team` instead.
|
|
124
|
+
* The UUID of the pipeline.
|
|
120
125
|
*/
|
|
121
|
-
readonly
|
|
126
|
+
readonly uuid: pulumi.Output<string>;
|
|
122
127
|
/**
|
|
123
|
-
* The
|
|
128
|
+
* The webhook URL used to trigger builds from VCS providers.
|
|
124
129
|
*/
|
|
125
130
|
readonly webhookUrl: pulumi.Output<string>;
|
|
126
131
|
/**
|
|
@@ -137,92 +142,99 @@ export declare class Pipeline extends pulumi.CustomResource {
|
|
|
137
142
|
*/
|
|
138
143
|
export interface PipelineState {
|
|
139
144
|
/**
|
|
140
|
-
*
|
|
145
|
+
* Whether rebuilds are allowed for this pipeline.
|
|
141
146
|
*/
|
|
142
147
|
allowRebuilds?: pulumi.Input<boolean>;
|
|
143
148
|
/**
|
|
144
|
-
*
|
|
145
|
-
*/
|
|
146
|
-
archiveOnDelete?: pulumi.Input<boolean>;
|
|
147
|
-
/**
|
|
148
|
-
* The pipeline's last build status so you can display build status badge.
|
|
149
|
+
* The badge URL showing build state.
|
|
149
150
|
*/
|
|
150
151
|
badgeUrl?: pulumi.Input<string>;
|
|
151
152
|
/**
|
|
152
|
-
*
|
|
153
|
+
* Configure the pipeline to only build on this branch conditional.
|
|
153
154
|
*/
|
|
154
155
|
branchConfiguration?: pulumi.Input<string>;
|
|
155
156
|
/**
|
|
156
|
-
*
|
|
157
|
+
* Whether to cancel builds when a new commit is pushed to a matching branch.
|
|
157
158
|
*/
|
|
158
159
|
cancelIntermediateBuilds?: pulumi.Input<boolean>;
|
|
159
160
|
/**
|
|
160
|
-
*
|
|
161
|
+
* Filter the `cancel_intermediate_builds` setting based on this branch condition.
|
|
161
162
|
*/
|
|
162
163
|
cancelIntermediateBuildsBranchFilter?: pulumi.Input<string>;
|
|
163
164
|
/**
|
|
164
|
-
*
|
|
165
|
+
* Attach this pipeline to the given cluster GraphQL ID.
|
|
165
166
|
*/
|
|
166
167
|
clusterId?: pulumi.Input<string>;
|
|
167
168
|
/**
|
|
168
|
-
*
|
|
169
|
+
* A color hex code to represent this pipeline.
|
|
170
|
+
*/
|
|
171
|
+
color?: pulumi.Input<string>;
|
|
172
|
+
/**
|
|
173
|
+
* Default branch of the pipeline.
|
|
169
174
|
*/
|
|
170
175
|
defaultBranch?: pulumi.Input<string>;
|
|
171
176
|
/**
|
|
172
|
-
* The
|
|
177
|
+
* The GraphQL ID of the team to use as the default owner of the pipeline.
|
|
173
178
|
*/
|
|
174
|
-
|
|
179
|
+
defaultTeamId?: pulumi.Input<string>;
|
|
175
180
|
/**
|
|
176
|
-
*
|
|
177
|
-
*
|
|
178
|
-
* @deprecated Deletion protection will be removed in a future release. A similar solution already exists and is supported by Terraform. See https://developer.hashicorp.com/terraform/language/meta-arguments/lifecycle.
|
|
181
|
+
* Set pipeline wide timeout for command steps.
|
|
179
182
|
*/
|
|
180
|
-
|
|
183
|
+
defaultTimeoutInMinutes?: pulumi.Input<number>;
|
|
181
184
|
/**
|
|
182
|
-
*
|
|
185
|
+
* Description for the pipeline. Can include emoji 🙌.
|
|
183
186
|
*/
|
|
184
187
|
description?: pulumi.Input<string>;
|
|
185
188
|
/**
|
|
186
|
-
*
|
|
189
|
+
* An emoji that represents this pipeline.
|
|
190
|
+
*/
|
|
191
|
+
emoji?: pulumi.Input<string>;
|
|
192
|
+
/**
|
|
193
|
+
* Set pipeline wide maximum timeout for command steps.
|
|
187
194
|
*/
|
|
188
195
|
maximumTimeoutInMinutes?: pulumi.Input<number>;
|
|
189
196
|
/**
|
|
190
|
-
*
|
|
197
|
+
* Name to give the pipeline.
|
|
191
198
|
*/
|
|
192
199
|
name?: pulumi.Input<string>;
|
|
193
200
|
/**
|
|
194
|
-
*
|
|
201
|
+
* The GraphQL ID of the pipeline template applied to this pipeline.
|
|
202
|
+
*/
|
|
203
|
+
pipelineTemplateId?: pulumi.Input<string>;
|
|
204
|
+
/**
|
|
205
|
+
* Control settings depending on the VCS provider used in `repository`.
|
|
195
206
|
*/
|
|
196
207
|
providerSettings?: pulumi.Input<inputs.Pipeline.PipelineProviderSettings>;
|
|
197
208
|
/**
|
|
198
|
-
*
|
|
209
|
+
* URL to the repository this pipeline is configured for.
|
|
199
210
|
*/
|
|
200
211
|
repository?: pulumi.Input<string>;
|
|
201
212
|
/**
|
|
202
|
-
*
|
|
213
|
+
* Whether to skip queued builds if a new commit is pushed to a matching branch.
|
|
203
214
|
*/
|
|
204
215
|
skipIntermediateBuilds?: pulumi.Input<boolean>;
|
|
205
216
|
/**
|
|
206
|
-
*
|
|
217
|
+
* Filter the `skip_intermediate_builds` setting based on this branch condition.
|
|
207
218
|
*/
|
|
208
219
|
skipIntermediateBuildsBranchFilter?: pulumi.Input<string>;
|
|
209
220
|
/**
|
|
210
|
-
* The slug
|
|
221
|
+
* The slug generated for the pipeline.
|
|
211
222
|
*/
|
|
212
223
|
slug?: pulumi.Input<string>;
|
|
213
224
|
/**
|
|
214
|
-
* The
|
|
225
|
+
* The YAML steps to configure for the pipeline. Defaults to `buildkite-agent pipeline upload`.
|
|
215
226
|
*/
|
|
216
227
|
steps?: pulumi.Input<string>;
|
|
228
|
+
/**
|
|
229
|
+
* Tags to attribute to the pipeline. Useful for searching by in the UI.
|
|
230
|
+
*/
|
|
217
231
|
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
218
232
|
/**
|
|
219
|
-
*
|
|
220
|
-
*
|
|
221
|
-
* @deprecated This block is deprecated. Please use `buildkite_pipeline_team` instead.
|
|
233
|
+
* The UUID of the pipeline.
|
|
222
234
|
*/
|
|
223
|
-
|
|
235
|
+
uuid?: pulumi.Input<string>;
|
|
224
236
|
/**
|
|
225
|
-
* The
|
|
237
|
+
* The webhook URL used to trigger builds from VCS providers.
|
|
226
238
|
*/
|
|
227
239
|
webhookUrl?: pulumi.Input<string>;
|
|
228
240
|
}
|
|
@@ -231,80 +243,83 @@ export interface PipelineState {
|
|
|
231
243
|
*/
|
|
232
244
|
export interface PipelineArgs {
|
|
233
245
|
/**
|
|
234
|
-
*
|
|
246
|
+
* Whether rebuilds are allowed for this pipeline.
|
|
235
247
|
*/
|
|
236
248
|
allowRebuilds?: pulumi.Input<boolean>;
|
|
237
249
|
/**
|
|
238
|
-
*
|
|
239
|
-
*/
|
|
240
|
-
archiveOnDelete?: pulumi.Input<boolean>;
|
|
241
|
-
/**
|
|
242
|
-
* Limit which branches and tags cause new builds to be created, either via a code push or via the Builds REST API.
|
|
250
|
+
* Configure the pipeline to only build on this branch conditional.
|
|
243
251
|
*/
|
|
244
252
|
branchConfiguration?: pulumi.Input<string>;
|
|
245
253
|
/**
|
|
246
|
-
*
|
|
254
|
+
* Whether to cancel builds when a new commit is pushed to a matching branch.
|
|
247
255
|
*/
|
|
248
256
|
cancelIntermediateBuilds?: pulumi.Input<boolean>;
|
|
249
257
|
/**
|
|
250
|
-
*
|
|
258
|
+
* Filter the `cancel_intermediate_builds` setting based on this branch condition.
|
|
251
259
|
*/
|
|
252
260
|
cancelIntermediateBuildsBranchFilter?: pulumi.Input<string>;
|
|
253
261
|
/**
|
|
254
|
-
*
|
|
262
|
+
* Attach this pipeline to the given cluster GraphQL ID.
|
|
255
263
|
*/
|
|
256
264
|
clusterId?: pulumi.Input<string>;
|
|
257
265
|
/**
|
|
258
|
-
*
|
|
266
|
+
* A color hex code to represent this pipeline.
|
|
267
|
+
*/
|
|
268
|
+
color?: pulumi.Input<string>;
|
|
269
|
+
/**
|
|
270
|
+
* Default branch of the pipeline.
|
|
259
271
|
*/
|
|
260
272
|
defaultBranch?: pulumi.Input<string>;
|
|
261
273
|
/**
|
|
262
|
-
* The
|
|
274
|
+
* The GraphQL ID of the team to use as the default owner of the pipeline.
|
|
263
275
|
*/
|
|
264
|
-
|
|
276
|
+
defaultTeamId?: pulumi.Input<string>;
|
|
265
277
|
/**
|
|
266
|
-
*
|
|
267
|
-
*
|
|
268
|
-
* @deprecated Deletion protection will be removed in a future release. A similar solution already exists and is supported by Terraform. See https://developer.hashicorp.com/terraform/language/meta-arguments/lifecycle.
|
|
278
|
+
* Set pipeline wide timeout for command steps.
|
|
269
279
|
*/
|
|
270
|
-
|
|
280
|
+
defaultTimeoutInMinutes?: pulumi.Input<number>;
|
|
271
281
|
/**
|
|
272
|
-
*
|
|
282
|
+
* Description for the pipeline. Can include emoji 🙌.
|
|
273
283
|
*/
|
|
274
284
|
description?: pulumi.Input<string>;
|
|
275
285
|
/**
|
|
276
|
-
*
|
|
286
|
+
* An emoji that represents this pipeline.
|
|
287
|
+
*/
|
|
288
|
+
emoji?: pulumi.Input<string>;
|
|
289
|
+
/**
|
|
290
|
+
* Set pipeline wide maximum timeout for command steps.
|
|
277
291
|
*/
|
|
278
292
|
maximumTimeoutInMinutes?: pulumi.Input<number>;
|
|
279
293
|
/**
|
|
280
|
-
*
|
|
294
|
+
* Name to give the pipeline.
|
|
281
295
|
*/
|
|
282
296
|
name?: pulumi.Input<string>;
|
|
283
297
|
/**
|
|
284
|
-
*
|
|
298
|
+
* The GraphQL ID of the pipeline template applied to this pipeline.
|
|
299
|
+
*/
|
|
300
|
+
pipelineTemplateId?: pulumi.Input<string>;
|
|
301
|
+
/**
|
|
302
|
+
* Control settings depending on the VCS provider used in `repository`.
|
|
285
303
|
*/
|
|
286
304
|
providerSettings?: pulumi.Input<inputs.Pipeline.PipelineProviderSettings>;
|
|
287
305
|
/**
|
|
288
|
-
*
|
|
306
|
+
* URL to the repository this pipeline is configured for.
|
|
289
307
|
*/
|
|
290
308
|
repository: pulumi.Input<string>;
|
|
291
309
|
/**
|
|
292
|
-
*
|
|
310
|
+
* Whether to skip queued builds if a new commit is pushed to a matching branch.
|
|
293
311
|
*/
|
|
294
312
|
skipIntermediateBuilds?: pulumi.Input<boolean>;
|
|
295
313
|
/**
|
|
296
|
-
*
|
|
314
|
+
* Filter the `skip_intermediate_builds` setting based on this branch condition.
|
|
297
315
|
*/
|
|
298
316
|
skipIntermediateBuildsBranchFilter?: pulumi.Input<string>;
|
|
299
317
|
/**
|
|
300
|
-
* The
|
|
318
|
+
* The YAML steps to configure for the pipeline. Defaults to `buildkite-agent pipeline upload`.
|
|
301
319
|
*/
|
|
302
320
|
steps?: pulumi.Input<string>;
|
|
303
|
-
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
304
321
|
/**
|
|
305
|
-
*
|
|
306
|
-
*
|
|
307
|
-
* @deprecated This block is deprecated. Please use `buildkite_pipeline_team` instead.
|
|
322
|
+
* Tags to attribute to the pipeline. Useful for searching by in the UI.
|
|
308
323
|
*/
|
|
309
|
-
|
|
324
|
+
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
310
325
|
}
|
package/pipeline/pipeline.js
CHANGED
|
@@ -6,21 +6,19 @@ exports.Pipeline = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* Pipelines can be imported using the `GraphQL ID` (not UUID), e.g.
|
|
9
|
+
* This resource allows you to create and manage pipelines for repositories.
|
|
12
10
|
*
|
|
13
|
-
*
|
|
14
|
-
* $ pulumi import buildkite:Pipeline/pipeline:Pipeline fleet UGlwZWxpbmUtLS00MzVjYWQ1OC1lODFkLTQ1YWYtODYzNy1iMWNmODA3MDIzOGQ=
|
|
15
|
-
* ```
|
|
11
|
+
* More information on pipelines can be found in the [documentation](https://buildkite.com/docs/pipelines).
|
|
16
12
|
*
|
|
17
|
-
*
|
|
13
|
+
* ## Import
|
|
18
14
|
*
|
|
19
|
-
*
|
|
15
|
+
* import a pipeline resource using the pipelines GraphQL ID
|
|
20
16
|
*
|
|
21
|
-
*
|
|
17
|
+
* GraphQL ID for a pipeline can be found on its settings page
|
|
22
18
|
*
|
|
23
|
-
*
|
|
19
|
+
* ```sh
|
|
20
|
+
* $ pulumi import buildkite:Pipeline/pipeline:Pipeline pipeline UGlwZWxpbmUtLS00MzVjYWQ1OC1lODFkLTQ1YWYtODYzNy1iMWNmODA3MDIzOGQ=
|
|
21
|
+
* ```
|
|
24
22
|
*/
|
|
25
23
|
class Pipeline extends pulumi.CustomResource {
|
|
26
24
|
/**
|
|
@@ -51,18 +49,20 @@ class Pipeline extends pulumi.CustomResource {
|
|
|
51
49
|
if (opts.id) {
|
|
52
50
|
const state = argsOrState;
|
|
53
51
|
resourceInputs["allowRebuilds"] = state ? state.allowRebuilds : undefined;
|
|
54
|
-
resourceInputs["archiveOnDelete"] = state ? state.archiveOnDelete : undefined;
|
|
55
52
|
resourceInputs["badgeUrl"] = state ? state.badgeUrl : undefined;
|
|
56
53
|
resourceInputs["branchConfiguration"] = state ? state.branchConfiguration : undefined;
|
|
57
54
|
resourceInputs["cancelIntermediateBuilds"] = state ? state.cancelIntermediateBuilds : undefined;
|
|
58
55
|
resourceInputs["cancelIntermediateBuildsBranchFilter"] = state ? state.cancelIntermediateBuildsBranchFilter : undefined;
|
|
59
56
|
resourceInputs["clusterId"] = state ? state.clusterId : undefined;
|
|
57
|
+
resourceInputs["color"] = state ? state.color : undefined;
|
|
60
58
|
resourceInputs["defaultBranch"] = state ? state.defaultBranch : undefined;
|
|
59
|
+
resourceInputs["defaultTeamId"] = state ? state.defaultTeamId : undefined;
|
|
61
60
|
resourceInputs["defaultTimeoutInMinutes"] = state ? state.defaultTimeoutInMinutes : undefined;
|
|
62
|
-
resourceInputs["deletionProtection"] = state ? state.deletionProtection : undefined;
|
|
63
61
|
resourceInputs["description"] = state ? state.description : undefined;
|
|
62
|
+
resourceInputs["emoji"] = state ? state.emoji : undefined;
|
|
64
63
|
resourceInputs["maximumTimeoutInMinutes"] = state ? state.maximumTimeoutInMinutes : undefined;
|
|
65
64
|
resourceInputs["name"] = state ? state.name : undefined;
|
|
65
|
+
resourceInputs["pipelineTemplateId"] = state ? state.pipelineTemplateId : undefined;
|
|
66
66
|
resourceInputs["providerSettings"] = state ? state.providerSettings : undefined;
|
|
67
67
|
resourceInputs["repository"] = state ? state.repository : undefined;
|
|
68
68
|
resourceInputs["skipIntermediateBuilds"] = state ? state.skipIntermediateBuilds : undefined;
|
|
@@ -70,7 +70,7 @@ class Pipeline extends pulumi.CustomResource {
|
|
|
70
70
|
resourceInputs["slug"] = state ? state.slug : undefined;
|
|
71
71
|
resourceInputs["steps"] = state ? state.steps : undefined;
|
|
72
72
|
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
73
|
-
resourceInputs["
|
|
73
|
+
resourceInputs["uuid"] = state ? state.uuid : undefined;
|
|
74
74
|
resourceInputs["webhookUrl"] = state ? state.webhookUrl : undefined;
|
|
75
75
|
}
|
|
76
76
|
else {
|
|
@@ -79,26 +79,28 @@ class Pipeline extends pulumi.CustomResource {
|
|
|
79
79
|
throw new Error("Missing required property 'repository'");
|
|
80
80
|
}
|
|
81
81
|
resourceInputs["allowRebuilds"] = args ? args.allowRebuilds : undefined;
|
|
82
|
-
resourceInputs["archiveOnDelete"] = args ? args.archiveOnDelete : undefined;
|
|
83
82
|
resourceInputs["branchConfiguration"] = args ? args.branchConfiguration : undefined;
|
|
84
83
|
resourceInputs["cancelIntermediateBuilds"] = args ? args.cancelIntermediateBuilds : undefined;
|
|
85
84
|
resourceInputs["cancelIntermediateBuildsBranchFilter"] = args ? args.cancelIntermediateBuildsBranchFilter : undefined;
|
|
86
85
|
resourceInputs["clusterId"] = args ? args.clusterId : undefined;
|
|
86
|
+
resourceInputs["color"] = args ? args.color : undefined;
|
|
87
87
|
resourceInputs["defaultBranch"] = args ? args.defaultBranch : undefined;
|
|
88
|
+
resourceInputs["defaultTeamId"] = args ? args.defaultTeamId : undefined;
|
|
88
89
|
resourceInputs["defaultTimeoutInMinutes"] = args ? args.defaultTimeoutInMinutes : undefined;
|
|
89
|
-
resourceInputs["deletionProtection"] = args ? args.deletionProtection : undefined;
|
|
90
90
|
resourceInputs["description"] = args ? args.description : undefined;
|
|
91
|
+
resourceInputs["emoji"] = args ? args.emoji : undefined;
|
|
91
92
|
resourceInputs["maximumTimeoutInMinutes"] = args ? args.maximumTimeoutInMinutes : undefined;
|
|
92
93
|
resourceInputs["name"] = args ? args.name : undefined;
|
|
94
|
+
resourceInputs["pipelineTemplateId"] = args ? args.pipelineTemplateId : undefined;
|
|
93
95
|
resourceInputs["providerSettings"] = args ? args.providerSettings : undefined;
|
|
94
96
|
resourceInputs["repository"] = args ? args.repository : undefined;
|
|
95
97
|
resourceInputs["skipIntermediateBuilds"] = args ? args.skipIntermediateBuilds : undefined;
|
|
96
98
|
resourceInputs["skipIntermediateBuildsBranchFilter"] = args ? args.skipIntermediateBuildsBranchFilter : undefined;
|
|
97
99
|
resourceInputs["steps"] = args ? args.steps : undefined;
|
|
98
100
|
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
99
|
-
resourceInputs["teams"] = args ? args.teams : undefined;
|
|
100
101
|
resourceInputs["badgeUrl"] = undefined /*out*/;
|
|
101
102
|
resourceInputs["slug"] = undefined /*out*/;
|
|
103
|
+
resourceInputs["uuid"] = undefined /*out*/;
|
|
102
104
|
resourceInputs["webhookUrl"] = undefined /*out*/;
|
|
103
105
|
}
|
|
104
106
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
package/pipeline/pipeline.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline.js","sourceRoot":"","sources":["../../pipeline/pipeline.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"pipeline.js","sourceRoot":"","sources":["../../pipeline/pipeline.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;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