@pulumiverse/buildkite 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/config/vars.d.ts +5 -1
- package/config/vars.js +6 -0
- package/config/vars.js.map +1 -1
- package/getMeta.d.ts +0 -3
- package/index.d.ts +2 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/organization/getOrganization.d.ts +2 -46
- package/organization/getOrganization.js +3 -32
- package/organization/getOrganization.js.map +1 -1
- package/organization/index.d.ts +4 -2
- package/organization/index.js +7 -3
- package/organization/index.js.map +1 -1
- package/organization/organization.d.ts +78 -0
- package/organization/organization.js +79 -0
- package/organization/organization.js.map +1 -0
- package/organization/settings.d.ts +2 -0
- package/organization/settings.js +2 -0
- package/organization/settings.js.map +1 -1
- package/package.json +2 -2
- package/pipeline/getPipeline.d.ts +1 -4
- package/pipeline/getPipeline.js.map +1 -1
- package/pipeline/index.d.ts +3 -0
- package/pipeline/index.js +6 -1
- package/pipeline/index.js.map +1 -1
- package/pipeline/pipeline.d.ts +35 -114
- package/pipeline/pipeline.js +0 -100
- package/pipeline/pipeline.js.map +1 -1
- package/pipeline/schedule.d.ts +17 -14
- package/pipeline/schedule.js +5 -11
- package/pipeline/schedule.js.map +1 -1
- package/pipeline/team.d.ts +128 -0
- package/pipeline/team.js +112 -0
- package/pipeline/team.js.map +1 -0
- package/provider.d.ts +6 -2
- package/provider.js +1 -0
- package/provider.js.map +1 -1
- package/team/getTeam.d.ts +24 -10
- package/team/getTeam.js +6 -4
- package/team/getTeam.js.map +1 -1
- package/team/team.d.ts +1 -1
- package/testsuite/index.d.ts +6 -0
- package/testsuite/index.js +27 -0
- package/testsuite/index.js.map +1 -0
- package/testsuite/team.d.ts +166 -0
- package/testsuite/team.js +150 -0
- package/testsuite/team.js.map +1 -0
- package/testsuite/testSuite.d.ts +120 -0
- package/testsuite/testSuite.js +91 -0
- package/testsuite/testSuite.js.map +1 -0
- package/types/input.d.ts +3 -4
- package/types/output.d.ts +8 -9
package/pipeline/pipeline.d.ts
CHANGED
|
@@ -2,106 +2,6 @@ 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
|
-
* ## # Resource: pipeline
|
|
6
|
-
*
|
|
7
|
-
* This resource allows you to create and manage pipelines for repositories.
|
|
8
|
-
*
|
|
9
|
-
* Buildkite Documentation: https://buildkite.com/docs/pipelines
|
|
10
|
-
*
|
|
11
|
-
* ## Example Usage
|
|
12
|
-
*
|
|
13
|
-
* ```typescript
|
|
14
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
-
* import * as buildkite from "@pulumiverse/buildkite";
|
|
16
|
-
* import * as fs from "fs";
|
|
17
|
-
*
|
|
18
|
-
* // in ./steps.yml:
|
|
19
|
-
* // steps:
|
|
20
|
-
* // - label: ':pipeline:'
|
|
21
|
-
* // command: buildkite-agent pipeline upload
|
|
22
|
-
* const repo2 = new buildkite.pipeline.Pipeline("repo2", {
|
|
23
|
-
* repository: "git@github.com:org/repo2",
|
|
24
|
-
* steps: fs.readFileSync("./steps.yml"),
|
|
25
|
-
* teams: [{
|
|
26
|
-
* slug: "everyone",
|
|
27
|
-
* accessLevel: "READ_ONLY",
|
|
28
|
-
* }],
|
|
29
|
-
* });
|
|
30
|
-
* ```
|
|
31
|
-
* ### With Command Timeouts
|
|
32
|
-
*
|
|
33
|
-
* ```typescript
|
|
34
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
35
|
-
* import * as buildkite from "@pulumiverse/buildkite";
|
|
36
|
-
* import * as fs from "fs";
|
|
37
|
-
*
|
|
38
|
-
* const testNew = new buildkite.pipeline.Pipeline("testNew", {
|
|
39
|
-
* repository: "https://github.com/buildkite/terraform-provider-buildkite.git",
|
|
40
|
-
* steps: fs.readFileSync("./deploy-steps.yml"),
|
|
41
|
-
* defaultTimeoutInMinutes: 60,
|
|
42
|
-
* maximumTimeoutInMinutes: 120,
|
|
43
|
-
* });
|
|
44
|
-
* ```
|
|
45
|
-
*
|
|
46
|
-
* Currently, the `defaultTimeoutInMinutes` and `maximumTimeoutInMinutes` will be retained in state even if removed from the configuration. In order to remove them, you must set them to `0` in either the configuration or the web UI.
|
|
47
|
-
* ### With Deletion Protection
|
|
48
|
-
*
|
|
49
|
-
* ```typescript
|
|
50
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
51
|
-
* import * as buildkite from "@pulumiverse/buildkite";
|
|
52
|
-
* import * as fs from "fs";
|
|
53
|
-
*
|
|
54
|
-
* const testNew = new buildkite.pipeline.Pipeline("testNew", {
|
|
55
|
-
* repository: "https://github.com/buildkite/terraform-provider-buildkite.git",
|
|
56
|
-
* steps: fs.readFileSync("./deploy-steps.yml"),
|
|
57
|
-
* deletionProtection: true,
|
|
58
|
-
* });
|
|
59
|
-
* ```
|
|
60
|
-
*
|
|
61
|
-
* `deletionProtection` will block `destroy` actions on the **pipeline**. Attached resources, such as `schedules` will still be destroyed.
|
|
62
|
-
* ### With Archive On Delete
|
|
63
|
-
*
|
|
64
|
-
* ```typescript
|
|
65
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
66
|
-
* import * as buildkite from "@pulumiverse/buildkite";
|
|
67
|
-
* import * as fs from "fs";
|
|
68
|
-
*
|
|
69
|
-
* const testNew = new buildkite.pipeline.Pipeline("testNew", {
|
|
70
|
-
* repository: "https://github.com/buildkite/terraform-provider-buildkite.git",
|
|
71
|
-
* steps: fs.readFileSync("./deploy-steps.yml"),
|
|
72
|
-
* archiveOnDelete: true,
|
|
73
|
-
* });
|
|
74
|
-
* ```
|
|
75
|
-
*
|
|
76
|
-
* `archiveOnDelete` will archive the **pipeline** when `destroy` is called. Attached resources, such as `schedules` will still be destroyed. In order to delete the pipeline, `archiveOnDelete` must be set to `false` in the configuration, then `destroy` must be called again.
|
|
77
|
-
* ### With GitHub Provider Settings
|
|
78
|
-
*
|
|
79
|
-
* ```typescript
|
|
80
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
81
|
-
* import * as buildkite from "@pulumiverse/buildkite";
|
|
82
|
-
* import * as fs from "fs";
|
|
83
|
-
*
|
|
84
|
-
* // Pipeline that should not be triggered from a GitHub webhook
|
|
85
|
-
* const repo2_deploy = new buildkite.pipeline.Pipeline("repo2-deploy", {
|
|
86
|
-
* repository: "git@github.com:org/repo2",
|
|
87
|
-
* steps: fs.readFileSync("./deploy-steps.yml"),
|
|
88
|
-
* providerSettings: {
|
|
89
|
-
* triggerMode: "none",
|
|
90
|
-
* },
|
|
91
|
-
* });
|
|
92
|
-
* // Release pipeline (triggered only when tags are pushed)
|
|
93
|
-
* const repo2_release = new buildkite.pipeline.Pipeline("repo2-release", {
|
|
94
|
-
* repository: "git@github.com:org/repo2",
|
|
95
|
-
* steps: fs.readFileSync("./release-steps.yml"),
|
|
96
|
-
* providerSettings: {
|
|
97
|
-
* buildBranches: false,
|
|
98
|
-
* buildTags: true,
|
|
99
|
-
* buildPullRequests: false,
|
|
100
|
-
* triggerMode: "code",
|
|
101
|
-
* },
|
|
102
|
-
* });
|
|
103
|
-
* ```
|
|
104
|
-
*
|
|
105
5
|
* ## Import
|
|
106
6
|
*
|
|
107
7
|
* Pipelines can be imported using the `GraphQL ID` (not UUID), e.g.
|
|
@@ -137,8 +37,11 @@ export declare class Pipeline extends pulumi.CustomResource {
|
|
|
137
37
|
/**
|
|
138
38
|
* A boolean on whether or not to allow rebuilds for the pipeline.
|
|
139
39
|
*/
|
|
140
|
-
readonly allowRebuilds: pulumi.Output<boolean
|
|
141
|
-
|
|
40
|
+
readonly allowRebuilds: pulumi.Output<boolean>;
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated This attribute has been deprecated and will be removed in v0.27.0. Please use provider configuration `archive_pipeline_on_delete` instead.
|
|
43
|
+
*/
|
|
44
|
+
readonly archiveOnDelete: pulumi.Output<boolean>;
|
|
142
45
|
/**
|
|
143
46
|
* The pipeline's last build status so you can display build status badge.
|
|
144
47
|
*/
|
|
@@ -168,9 +71,11 @@ export declare class Pipeline extends pulumi.CustomResource {
|
|
|
168
71
|
*/
|
|
169
72
|
readonly defaultTimeoutInMinutes: pulumi.Output<number>;
|
|
170
73
|
/**
|
|
171
|
-
* Set to either `true` or `false`. When set to `true`, `destroy` actions on a pipeline will be blocked and fail with a message "Deletion protection is enabled for pipeline: <pipeline name>"
|
|
74
|
+
* **DEPRECATED** (Optional) Set to either `true` or `false`. When set to `true`, `destroy` actions on a pipeline will be blocked and fail with a message "Deletion protection is enabled for pipeline: <pipeline name>"
|
|
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.
|
|
172
77
|
*/
|
|
173
|
-
readonly deletionProtection: pulumi.Output<boolean
|
|
78
|
+
readonly deletionProtection: pulumi.Output<boolean>;
|
|
174
79
|
/**
|
|
175
80
|
* A description of the pipeline.
|
|
176
81
|
*/
|
|
@@ -186,7 +91,7 @@ export declare class Pipeline extends pulumi.CustomResource {
|
|
|
186
91
|
/**
|
|
187
92
|
* Source control provider settings for the pipeline. See Provider Settings Configuration below for details.
|
|
188
93
|
*/
|
|
189
|
-
readonly providerSettings: pulumi.Output<outputs.Pipeline.PipelineProviderSettings>;
|
|
94
|
+
readonly providerSettings: pulumi.Output<outputs.Pipeline.PipelineProviderSettings | undefined>;
|
|
190
95
|
/**
|
|
191
96
|
* The git URL of the repository.
|
|
192
97
|
*/
|
|
@@ -200,16 +105,18 @@ export declare class Pipeline extends pulumi.CustomResource {
|
|
|
200
105
|
*/
|
|
201
106
|
readonly skipIntermediateBuildsBranchFilter: pulumi.Output<string>;
|
|
202
107
|
/**
|
|
203
|
-
* The
|
|
108
|
+
* The slug of the created pipeline.
|
|
204
109
|
*/
|
|
205
110
|
readonly slug: pulumi.Output<string>;
|
|
206
111
|
/**
|
|
207
112
|
* The string YAML steps to run the pipeline. Defaults to `buildkite-agent pipeline upload` if not specified.
|
|
208
113
|
*/
|
|
209
|
-
readonly steps: pulumi.Output<string
|
|
210
|
-
readonly tags: pulumi.Output<string[]
|
|
114
|
+
readonly steps: pulumi.Output<string>;
|
|
115
|
+
readonly tags: pulumi.Output<string[]>;
|
|
211
116
|
/**
|
|
212
|
-
* Set team access for the pipeline. Can be specified multiple times for each team.
|
|
117
|
+
* **DEPRECATED** Set team access for the pipeline. Can be specified multiple times for each team.
|
|
118
|
+
*
|
|
119
|
+
* @deprecated This block is deprecated. Please use `buildkite_pipeline_team` instead.
|
|
213
120
|
*/
|
|
214
121
|
readonly teams: pulumi.Output<outputs.Pipeline.PipelineTeam[] | undefined>;
|
|
215
122
|
/**
|
|
@@ -233,6 +140,9 @@ export interface PipelineState {
|
|
|
233
140
|
* A boolean on whether or not to allow rebuilds for the pipeline.
|
|
234
141
|
*/
|
|
235
142
|
allowRebuilds?: pulumi.Input<boolean>;
|
|
143
|
+
/**
|
|
144
|
+
* @deprecated This attribute has been deprecated and will be removed in v0.27.0. Please use provider configuration `archive_pipeline_on_delete` instead.
|
|
145
|
+
*/
|
|
236
146
|
archiveOnDelete?: pulumi.Input<boolean>;
|
|
237
147
|
/**
|
|
238
148
|
* The pipeline's last build status so you can display build status badge.
|
|
@@ -263,7 +173,9 @@ export interface PipelineState {
|
|
|
263
173
|
*/
|
|
264
174
|
defaultTimeoutInMinutes?: pulumi.Input<number>;
|
|
265
175
|
/**
|
|
266
|
-
* Set to either `true` or `false`. When set to `true`, `destroy` actions on a pipeline will be blocked and fail with a message "Deletion protection is enabled for pipeline: <pipeline name>"
|
|
176
|
+
* **DEPRECATED** (Optional) Set to either `true` or `false`. When set to `true`, `destroy` actions on a pipeline will be blocked and fail with a message "Deletion protection is enabled for pipeline: <pipeline name>"
|
|
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.
|
|
267
179
|
*/
|
|
268
180
|
deletionProtection?: pulumi.Input<boolean>;
|
|
269
181
|
/**
|
|
@@ -295,7 +207,7 @@ export interface PipelineState {
|
|
|
295
207
|
*/
|
|
296
208
|
skipIntermediateBuildsBranchFilter?: pulumi.Input<string>;
|
|
297
209
|
/**
|
|
298
|
-
* The
|
|
210
|
+
* The slug of the created pipeline.
|
|
299
211
|
*/
|
|
300
212
|
slug?: pulumi.Input<string>;
|
|
301
213
|
/**
|
|
@@ -304,7 +216,9 @@ export interface PipelineState {
|
|
|
304
216
|
steps?: pulumi.Input<string>;
|
|
305
217
|
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
306
218
|
/**
|
|
307
|
-
* Set team access for the pipeline. Can be specified multiple times for each team.
|
|
219
|
+
* **DEPRECATED** Set team access for the pipeline. Can be specified multiple times for each team.
|
|
220
|
+
*
|
|
221
|
+
* @deprecated This block is deprecated. Please use `buildkite_pipeline_team` instead.
|
|
308
222
|
*/
|
|
309
223
|
teams?: pulumi.Input<pulumi.Input<inputs.Pipeline.PipelineTeam>[]>;
|
|
310
224
|
/**
|
|
@@ -320,6 +234,9 @@ export interface PipelineArgs {
|
|
|
320
234
|
* A boolean on whether or not to allow rebuilds for the pipeline.
|
|
321
235
|
*/
|
|
322
236
|
allowRebuilds?: pulumi.Input<boolean>;
|
|
237
|
+
/**
|
|
238
|
+
* @deprecated This attribute has been deprecated and will be removed in v0.27.0. Please use provider configuration `archive_pipeline_on_delete` instead.
|
|
239
|
+
*/
|
|
323
240
|
archiveOnDelete?: pulumi.Input<boolean>;
|
|
324
241
|
/**
|
|
325
242
|
* Limit which branches and tags cause new builds to be created, either via a code push or via the Builds REST API.
|
|
@@ -346,7 +263,9 @@ export interface PipelineArgs {
|
|
|
346
263
|
*/
|
|
347
264
|
defaultTimeoutInMinutes?: pulumi.Input<number>;
|
|
348
265
|
/**
|
|
349
|
-
* Set to either `true` or `false`. When set to `true`, `destroy` actions on a pipeline will be blocked and fail with a message "Deletion protection is enabled for pipeline: <pipeline name>"
|
|
266
|
+
* **DEPRECATED** (Optional) Set to either `true` or `false`. When set to `true`, `destroy` actions on a pipeline will be blocked and fail with a message "Deletion protection is enabled for pipeline: <pipeline name>"
|
|
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.
|
|
350
269
|
*/
|
|
351
270
|
deletionProtection?: pulumi.Input<boolean>;
|
|
352
271
|
/**
|
|
@@ -383,7 +302,9 @@ export interface PipelineArgs {
|
|
|
383
302
|
steps?: pulumi.Input<string>;
|
|
384
303
|
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
385
304
|
/**
|
|
386
|
-
* Set team access for the pipeline. Can be specified multiple times for each team.
|
|
305
|
+
* **DEPRECATED** Set team access for the pipeline. Can be specified multiple times for each team.
|
|
306
|
+
*
|
|
307
|
+
* @deprecated This block is deprecated. Please use `buildkite_pipeline_team` instead.
|
|
387
308
|
*/
|
|
388
309
|
teams?: pulumi.Input<pulumi.Input<inputs.Pipeline.PipelineTeam>[]>;
|
|
389
310
|
}
|
package/pipeline/pipeline.js
CHANGED
|
@@ -6,106 +6,6 @@ exports.Pipeline = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
-
* ## # Resource: pipeline
|
|
10
|
-
*
|
|
11
|
-
* This resource allows you to create and manage pipelines for repositories.
|
|
12
|
-
*
|
|
13
|
-
* Buildkite Documentation: https://buildkite.com/docs/pipelines
|
|
14
|
-
*
|
|
15
|
-
* ## Example Usage
|
|
16
|
-
*
|
|
17
|
-
* ```typescript
|
|
18
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
-
* import * as buildkite from "@pulumiverse/buildkite";
|
|
20
|
-
* import * as fs from "fs";
|
|
21
|
-
*
|
|
22
|
-
* // in ./steps.yml:
|
|
23
|
-
* // steps:
|
|
24
|
-
* // - label: ':pipeline:'
|
|
25
|
-
* // command: buildkite-agent pipeline upload
|
|
26
|
-
* const repo2 = new buildkite.pipeline.Pipeline("repo2", {
|
|
27
|
-
* repository: "git@github.com:org/repo2",
|
|
28
|
-
* steps: fs.readFileSync("./steps.yml"),
|
|
29
|
-
* teams: [{
|
|
30
|
-
* slug: "everyone",
|
|
31
|
-
* accessLevel: "READ_ONLY",
|
|
32
|
-
* }],
|
|
33
|
-
* });
|
|
34
|
-
* ```
|
|
35
|
-
* ### With Command Timeouts
|
|
36
|
-
*
|
|
37
|
-
* ```typescript
|
|
38
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
39
|
-
* import * as buildkite from "@pulumiverse/buildkite";
|
|
40
|
-
* import * as fs from "fs";
|
|
41
|
-
*
|
|
42
|
-
* const testNew = new buildkite.pipeline.Pipeline("testNew", {
|
|
43
|
-
* repository: "https://github.com/buildkite/terraform-provider-buildkite.git",
|
|
44
|
-
* steps: fs.readFileSync("./deploy-steps.yml"),
|
|
45
|
-
* defaultTimeoutInMinutes: 60,
|
|
46
|
-
* maximumTimeoutInMinutes: 120,
|
|
47
|
-
* });
|
|
48
|
-
* ```
|
|
49
|
-
*
|
|
50
|
-
* Currently, the `defaultTimeoutInMinutes` and `maximumTimeoutInMinutes` will be retained in state even if removed from the configuration. In order to remove them, you must set them to `0` in either the configuration or the web UI.
|
|
51
|
-
* ### With Deletion Protection
|
|
52
|
-
*
|
|
53
|
-
* ```typescript
|
|
54
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
55
|
-
* import * as buildkite from "@pulumiverse/buildkite";
|
|
56
|
-
* import * as fs from "fs";
|
|
57
|
-
*
|
|
58
|
-
* const testNew = new buildkite.pipeline.Pipeline("testNew", {
|
|
59
|
-
* repository: "https://github.com/buildkite/terraform-provider-buildkite.git",
|
|
60
|
-
* steps: fs.readFileSync("./deploy-steps.yml"),
|
|
61
|
-
* deletionProtection: true,
|
|
62
|
-
* });
|
|
63
|
-
* ```
|
|
64
|
-
*
|
|
65
|
-
* `deletionProtection` will block `destroy` actions on the **pipeline**. Attached resources, such as `schedules` will still be destroyed.
|
|
66
|
-
* ### With Archive On Delete
|
|
67
|
-
*
|
|
68
|
-
* ```typescript
|
|
69
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
70
|
-
* import * as buildkite from "@pulumiverse/buildkite";
|
|
71
|
-
* import * as fs from "fs";
|
|
72
|
-
*
|
|
73
|
-
* const testNew = new buildkite.pipeline.Pipeline("testNew", {
|
|
74
|
-
* repository: "https://github.com/buildkite/terraform-provider-buildkite.git",
|
|
75
|
-
* steps: fs.readFileSync("./deploy-steps.yml"),
|
|
76
|
-
* archiveOnDelete: true,
|
|
77
|
-
* });
|
|
78
|
-
* ```
|
|
79
|
-
*
|
|
80
|
-
* `archiveOnDelete` will archive the **pipeline** when `destroy` is called. Attached resources, such as `schedules` will still be destroyed. In order to delete the pipeline, `archiveOnDelete` must be set to `false` in the configuration, then `destroy` must be called again.
|
|
81
|
-
* ### With GitHub Provider Settings
|
|
82
|
-
*
|
|
83
|
-
* ```typescript
|
|
84
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
85
|
-
* import * as buildkite from "@pulumiverse/buildkite";
|
|
86
|
-
* import * as fs from "fs";
|
|
87
|
-
*
|
|
88
|
-
* // Pipeline that should not be triggered from a GitHub webhook
|
|
89
|
-
* const repo2_deploy = new buildkite.pipeline.Pipeline("repo2-deploy", {
|
|
90
|
-
* repository: "git@github.com:org/repo2",
|
|
91
|
-
* steps: fs.readFileSync("./deploy-steps.yml"),
|
|
92
|
-
* providerSettings: {
|
|
93
|
-
* triggerMode: "none",
|
|
94
|
-
* },
|
|
95
|
-
* });
|
|
96
|
-
* // Release pipeline (triggered only when tags are pushed)
|
|
97
|
-
* const repo2_release = new buildkite.pipeline.Pipeline("repo2-release", {
|
|
98
|
-
* repository: "git@github.com:org/repo2",
|
|
99
|
-
* steps: fs.readFileSync("./release-steps.yml"),
|
|
100
|
-
* providerSettings: {
|
|
101
|
-
* buildBranches: false,
|
|
102
|
-
* buildTags: true,
|
|
103
|
-
* buildPullRequests: false,
|
|
104
|
-
* triggerMode: "code",
|
|
105
|
-
* },
|
|
106
|
-
* });
|
|
107
|
-
* ```
|
|
108
|
-
*
|
|
109
9
|
* ## Import
|
|
110
10
|
*
|
|
111
11
|
* Pipelines can be imported using the `GraphQL ID` (not UUID), e.g.
|
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;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/D,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,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IAoGD,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAA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,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACpD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AAvLL,4BAwLC;AA1KG,gBAAgB;AACO,qBAAY,GAAG,sCAAsC,CAAC"}
|
package/pipeline/schedule.d.ts
CHANGED
|
@@ -22,19 +22,15 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
22
22
|
*
|
|
23
23
|
* ## Import
|
|
24
24
|
*
|
|
25
|
-
* Pipeline schedules can be imported using
|
|
25
|
+
* Pipeline schedules can be imported using their `GraphQL ID`, e.g.
|
|
26
26
|
*
|
|
27
27
|
* ```sh
|
|
28
|
-
* $ pulumi import buildkite:Pipeline/schedule:Schedule test
|
|
28
|
+
* $ pulumi import buildkite:Pipeline/schedule:Schedule test UGlwZWxpgm5Tf2hhZHVsZ35tLWRk4DdmN7c4LTA5M2ItNDM9YS0gMWE0LTAwZDUgYTAxYvRf49==
|
|
29
29
|
* ```
|
|
30
30
|
*
|
|
31
|
-
* Your
|
|
31
|
+
* Your pipeline schedules' GraphQL ID can be found with the below GraphQL query below. Alternatively, you could use this [pre-saved query](https://buildkite.com/user/graphql/console/45687b7c-2565-4acb-8a74-750a3647875f), specifying the organisation slug (when known) and the pipeline search term (PIPELINE_SEARCH_TERM). graphql query getPipelineScheduleId {
|
|
32
32
|
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* organization(slug"ORGANIZATION_SLUG") {
|
|
36
|
-
*
|
|
37
|
-
* pipelines(first5, search"PIPELINE_SEARCH_TERM") {
|
|
33
|
+
* organization(slug"ORGANIZATION_SLUG") { pipelines(first5, search"PIPELINE_SEARCH_TERM") {
|
|
38
34
|
*
|
|
39
35
|
* edges{
|
|
40
36
|
*
|
|
@@ -48,9 +44,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
48
44
|
*
|
|
49
45
|
* node{
|
|
50
46
|
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* cronline
|
|
47
|
+
* id
|
|
54
48
|
*
|
|
55
49
|
* }
|
|
56
50
|
*
|
|
@@ -89,7 +83,7 @@ export declare class Schedule extends pulumi.CustomResource {
|
|
|
89
83
|
/**
|
|
90
84
|
* The commit ref to use for the build.
|
|
91
85
|
*/
|
|
92
|
-
readonly commit: pulumi.Output<string
|
|
86
|
+
readonly commit: pulumi.Output<string>;
|
|
93
87
|
/**
|
|
94
88
|
* Schedule interval (see [docs](https://buildkite.com/docs/pipelines/scheduled-builds#schedule-intervals)).
|
|
95
89
|
*/
|
|
@@ -97,7 +91,7 @@ export declare class Schedule extends pulumi.CustomResource {
|
|
|
97
91
|
/**
|
|
98
92
|
* Whether the schedule should run.
|
|
99
93
|
*/
|
|
100
|
-
readonly enabled: pulumi.Output<boolean
|
|
94
|
+
readonly enabled: pulumi.Output<boolean>;
|
|
101
95
|
/**
|
|
102
96
|
* A map of environment variables to use for the build.
|
|
103
97
|
*/
|
|
@@ -111,7 +105,10 @@ export declare class Schedule extends pulumi.CustomResource {
|
|
|
111
105
|
/**
|
|
112
106
|
* The message to use for the build.
|
|
113
107
|
*/
|
|
114
|
-
readonly message: pulumi.Output<string>;
|
|
108
|
+
readonly message: pulumi.Output<string | undefined>;
|
|
109
|
+
/**
|
|
110
|
+
* The ID of the pipeline that this schedule belongs to.
|
|
111
|
+
*/
|
|
115
112
|
readonly pipelineId: pulumi.Output<string>;
|
|
116
113
|
/**
|
|
117
114
|
* The UUID of the pipeline schedule
|
|
@@ -160,6 +157,9 @@ export interface ScheduleState {
|
|
|
160
157
|
* The message to use for the build.
|
|
161
158
|
*/
|
|
162
159
|
message?: pulumi.Input<string>;
|
|
160
|
+
/**
|
|
161
|
+
* The ID of the pipeline that this schedule belongs to.
|
|
162
|
+
*/
|
|
163
163
|
pipelineId?: pulumi.Input<string>;
|
|
164
164
|
/**
|
|
165
165
|
* The UUID of the pipeline schedule
|
|
@@ -200,5 +200,8 @@ export interface ScheduleArgs {
|
|
|
200
200
|
* The message to use for the build.
|
|
201
201
|
*/
|
|
202
202
|
message?: pulumi.Input<string>;
|
|
203
|
+
/**
|
|
204
|
+
* The ID of the pipeline that this schedule belongs to.
|
|
205
|
+
*/
|
|
203
206
|
pipelineId: pulumi.Input<string>;
|
|
204
207
|
}
|
package/pipeline/schedule.js
CHANGED
|
@@ -28,19 +28,15 @@ const utilities = require("../utilities");
|
|
|
28
28
|
*
|
|
29
29
|
* ## Import
|
|
30
30
|
*
|
|
31
|
-
* Pipeline schedules can be imported using
|
|
31
|
+
* Pipeline schedules can be imported using their `GraphQL ID`, e.g.
|
|
32
32
|
*
|
|
33
33
|
* ```sh
|
|
34
|
-
* $ pulumi import buildkite:Pipeline/schedule:Schedule test
|
|
34
|
+
* $ pulumi import buildkite:Pipeline/schedule:Schedule test UGlwZWxpgm5Tf2hhZHVsZ35tLWRk4DdmN7c4LTA5M2ItNDM9YS0gMWE0LTAwZDUgYTAxYvRf49==
|
|
35
35
|
* ```
|
|
36
36
|
*
|
|
37
|
-
* Your
|
|
37
|
+
* Your pipeline schedules' GraphQL ID can be found with the below GraphQL query below. Alternatively, you could use this [pre-saved query](https://buildkite.com/user/graphql/console/45687b7c-2565-4acb-8a74-750a3647875f), specifying the organisation slug (when known) and the pipeline search term (PIPELINE_SEARCH_TERM). graphql query getPipelineScheduleId {
|
|
38
38
|
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
* organization(slug"ORGANIZATION_SLUG") {
|
|
42
|
-
*
|
|
43
|
-
* pipelines(first5, search"PIPELINE_SEARCH_TERM") {
|
|
39
|
+
* organization(slug"ORGANIZATION_SLUG") { pipelines(first5, search"PIPELINE_SEARCH_TERM") {
|
|
44
40
|
*
|
|
45
41
|
* edges{
|
|
46
42
|
*
|
|
@@ -54,9 +50,7 @@ const utilities = require("../utilities");
|
|
|
54
50
|
*
|
|
55
51
|
* node{
|
|
56
52
|
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
* cronline
|
|
53
|
+
* id
|
|
60
54
|
*
|
|
61
55
|
* }
|
|
62
56
|
*
|
package/pipeline/schedule.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedule.js","sourceRoot":"","sources":["../../pipeline/schedule.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"schedule.js","sourceRoot":"","sources":["../../pipeline/schedule.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/D,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,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IA+CD,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CA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G,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AAjHL,4BAkHC;AApGG,gBAAgB;AACO,qBAAY,GAAG,sCAAsC,CAAC"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## # Resource: pipelineTeam
|
|
4
|
+
*
|
|
5
|
+
* This resource allows you to create and manage team configuration in a pipeline.
|
|
6
|
+
*
|
|
7
|
+
* Buildkite Documentation: https://buildkite.com/docs/pipelines/permissions#permissions-with-teams-pipeline-level-permissions
|
|
8
|
+
*
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as buildkite from "@pulumiverse/buildkite";
|
|
14
|
+
*
|
|
15
|
+
* const developers = new buildkite.pipeline.Team("developers", {
|
|
16
|
+
* pipelineId: buildkite_pipeline.repo2,
|
|
17
|
+
* teamId: buildkite_team.test.id,
|
|
18
|
+
* accessLevel: "MANAGE_BUILD_AND_READ",
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* ## Import
|
|
23
|
+
*
|
|
24
|
+
* Pipeline teams can be imported using their `GraphQL ID`, e.g.
|
|
25
|
+
*
|
|
26
|
+
* ```sh
|
|
27
|
+
* $ pulumi import buildkite:Pipeline/team:Team guests VGVhbS0tLWU1YjQyMDQyLTUzN2QtNDZjNi04MjY0LTliZjFkMzkyYjZkNQ==
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* Your pipeline team's GraphQL ID can be found with the below GraphQL query below.
|
|
31
|
+
*
|
|
32
|
+
* graphql query getPipelineTeamId {
|
|
33
|
+
*
|
|
34
|
+
* pipeline(slug"ORGANIZATION_SLUG/PIPELINE_SLUG") { teams(first5, search"PIPELINE_SEARCH_TERM") {
|
|
35
|
+
*
|
|
36
|
+
* edges{
|
|
37
|
+
*
|
|
38
|
+
* node{
|
|
39
|
+
*
|
|
40
|
+
* id
|
|
41
|
+
*
|
|
42
|
+
* }
|
|
43
|
+
*
|
|
44
|
+
* }
|
|
45
|
+
*
|
|
46
|
+
* }
|
|
47
|
+
*
|
|
48
|
+
* } }
|
|
49
|
+
*/
|
|
50
|
+
export declare class Team extends pulumi.CustomResource {
|
|
51
|
+
/**
|
|
52
|
+
* Get an existing Team resource's state with the given name, ID, and optional extra
|
|
53
|
+
* properties used to qualify the lookup.
|
|
54
|
+
*
|
|
55
|
+
* @param name The _unique_ name of the resulting resource.
|
|
56
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
57
|
+
* @param state Any extra arguments used during the lookup.
|
|
58
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
59
|
+
*/
|
|
60
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TeamState, opts?: pulumi.CustomResourceOptions): Team;
|
|
61
|
+
/**
|
|
62
|
+
* Returns true if the given object is an instance of Team. This is designed to work even
|
|
63
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
64
|
+
*/
|
|
65
|
+
static isInstance(obj: any): obj is Team;
|
|
66
|
+
/**
|
|
67
|
+
* The level of access to grant. Must be one of `READ_ONLY`, `BUILD_AND_READ` or `MANAGE_BUILD_AND_READ`.
|
|
68
|
+
*/
|
|
69
|
+
readonly accessLevel: pulumi.Output<string>;
|
|
70
|
+
/**
|
|
71
|
+
* The GraphQL ID of the pipeline.
|
|
72
|
+
*/
|
|
73
|
+
readonly pipelineId: pulumi.Output<string>;
|
|
74
|
+
/**
|
|
75
|
+
* The GraphQL ID of the team to add to/remove from.
|
|
76
|
+
*/
|
|
77
|
+
readonly teamId: pulumi.Output<string>;
|
|
78
|
+
/**
|
|
79
|
+
* The UUID of the pipeline schedule
|
|
80
|
+
*/
|
|
81
|
+
readonly uuid: pulumi.Output<string>;
|
|
82
|
+
/**
|
|
83
|
+
* Create a Team resource with the given unique name, arguments, and options.
|
|
84
|
+
*
|
|
85
|
+
* @param name The _unique_ name of the resource.
|
|
86
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
87
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
88
|
+
*/
|
|
89
|
+
constructor(name: string, args: TeamArgs, opts?: pulumi.CustomResourceOptions);
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Input properties used for looking up and filtering Team resources.
|
|
93
|
+
*/
|
|
94
|
+
export interface TeamState {
|
|
95
|
+
/**
|
|
96
|
+
* The level of access to grant. Must be one of `READ_ONLY`, `BUILD_AND_READ` or `MANAGE_BUILD_AND_READ`.
|
|
97
|
+
*/
|
|
98
|
+
accessLevel?: pulumi.Input<string>;
|
|
99
|
+
/**
|
|
100
|
+
* The GraphQL ID of the pipeline.
|
|
101
|
+
*/
|
|
102
|
+
pipelineId?: pulumi.Input<string>;
|
|
103
|
+
/**
|
|
104
|
+
* The GraphQL ID of the team to add to/remove from.
|
|
105
|
+
*/
|
|
106
|
+
teamId?: pulumi.Input<string>;
|
|
107
|
+
/**
|
|
108
|
+
* The UUID of the pipeline schedule
|
|
109
|
+
*/
|
|
110
|
+
uuid?: pulumi.Input<string>;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* The set of arguments for constructing a Team resource.
|
|
114
|
+
*/
|
|
115
|
+
export interface TeamArgs {
|
|
116
|
+
/**
|
|
117
|
+
* The level of access to grant. Must be one of `READ_ONLY`, `BUILD_AND_READ` or `MANAGE_BUILD_AND_READ`.
|
|
118
|
+
*/
|
|
119
|
+
accessLevel: pulumi.Input<string>;
|
|
120
|
+
/**
|
|
121
|
+
* The GraphQL ID of the pipeline.
|
|
122
|
+
*/
|
|
123
|
+
pipelineId: pulumi.Input<string>;
|
|
124
|
+
/**
|
|
125
|
+
* The GraphQL ID of the team to add to/remove from.
|
|
126
|
+
*/
|
|
127
|
+
teamId: pulumi.Input<string>;
|
|
128
|
+
}
|