@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/schedule.d.ts
CHANGED
|
@@ -1,64 +1,75 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* A pipeline schedule is a schedule that triggers a pipeline to run at a specific time.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* Buildkite Documentation: https://buildkite.com/docs/pipelines/scheduled-builds
|
|
5
|
+
* You can find more information in the [documentation](https://buildkite.com/docs/pipelines/scheduled-builds).
|
|
8
6
|
*
|
|
9
7
|
* ## Example Usage
|
|
10
8
|
*
|
|
9
|
+
* <!--Start PulumiCodeChooser -->
|
|
11
10
|
* ```typescript
|
|
12
11
|
* import * as pulumi from "@pulumi/pulumi";
|
|
13
12
|
* import * as buildkite from "@pulumiverse/buildkite";
|
|
14
13
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
14
|
+
* // create a pipeline
|
|
15
|
+
* const pipeline = new buildkite.pipeline.Pipeline("pipeline", {repository: "https://github.com/..."});
|
|
16
|
+
* // schedule a build at midnight every day
|
|
17
|
+
* const nightly = new buildkite.pipeline.Schedule("nightly", {
|
|
18
|
+
* pipelineId: buildkite_pipeline.repo.id,
|
|
17
19
|
* label: "Nightly build",
|
|
18
20
|
* cronline: "@midnight",
|
|
19
|
-
* branch: buildkite_pipeline.
|
|
21
|
+
* branch: buildkite_pipeline.repo.default_branch,
|
|
20
22
|
* });
|
|
21
23
|
* ```
|
|
24
|
+
* <!--End PulumiCodeChooser -->
|
|
22
25
|
*
|
|
23
26
|
* ## Import
|
|
24
27
|
*
|
|
25
|
-
*
|
|
28
|
+
* import a pipeline schedule resource using the schedules GraphQL ID
|
|
26
29
|
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
+
* #
|
|
31
|
+
*
|
|
32
|
+
* you can use this query to find the schedule:
|
|
33
|
+
*
|
|
34
|
+
* query getPipelineScheduleId {
|
|
30
35
|
*
|
|
31
|
-
*
|
|
36
|
+
* organization(slug: "ORGANIZATION_SLUG") {
|
|
32
37
|
*
|
|
33
|
-
*
|
|
38
|
+
* pipelines(first: 5, search: "PIPELINE_SEARCH_TERM") {
|
|
34
39
|
*
|
|
35
|
-
*
|
|
40
|
+
* edges{
|
|
36
41
|
*
|
|
37
|
-
*
|
|
42
|
+
* node{
|
|
38
43
|
*
|
|
39
|
-
*
|
|
44
|
+
* name
|
|
40
45
|
*
|
|
41
|
-
*
|
|
46
|
+
* schedules{
|
|
42
47
|
*
|
|
43
|
-
*
|
|
48
|
+
* edges{
|
|
44
49
|
*
|
|
45
|
-
*
|
|
50
|
+
* node{
|
|
46
51
|
*
|
|
47
|
-
*
|
|
52
|
+
* id
|
|
48
53
|
*
|
|
49
|
-
*
|
|
54
|
+
* }
|
|
50
55
|
*
|
|
51
|
-
*
|
|
56
|
+
* }
|
|
52
57
|
*
|
|
53
|
-
*
|
|
58
|
+
* }
|
|
54
59
|
*
|
|
55
|
-
*
|
|
60
|
+
* }
|
|
56
61
|
*
|
|
57
|
-
*
|
|
62
|
+
* }
|
|
58
63
|
*
|
|
59
|
-
*
|
|
64
|
+
* }
|
|
60
65
|
*
|
|
61
|
-
*
|
|
66
|
+
* }
|
|
67
|
+
*
|
|
68
|
+
* }
|
|
69
|
+
*
|
|
70
|
+
* ```sh
|
|
71
|
+
* $ pulumi import buildkite:Pipeline/schedule:Schedule test UGlwZWxpgm5Tf2hhZHVsZ35tLWRk4DdmN7c4LTA5M2ItNDM9YS0gMWE0LTAwZDUgYTAxYvRf49==
|
|
72
|
+
* ```
|
|
62
73
|
*/
|
|
63
74
|
export declare class Schedule extends pulumi.CustomResource {
|
|
64
75
|
/**
|
|
@@ -77,41 +88,41 @@ export declare class Schedule extends pulumi.CustomResource {
|
|
|
77
88
|
*/
|
|
78
89
|
static isInstance(obj: any): obj is Schedule;
|
|
79
90
|
/**
|
|
80
|
-
* The branch
|
|
91
|
+
* The branch that the schedule should run on.
|
|
81
92
|
*/
|
|
82
93
|
readonly branch: pulumi.Output<string>;
|
|
83
94
|
/**
|
|
84
|
-
* The commit
|
|
95
|
+
* The commit that the schedule should run on.
|
|
85
96
|
*/
|
|
86
97
|
readonly commit: pulumi.Output<string>;
|
|
87
98
|
/**
|
|
88
|
-
*
|
|
99
|
+
* The cronline that describes when the schedule should run. See[here](https://buildkite.com/docs/pipelines/scheduled-builds#schedule-intervals) for supported syntax.
|
|
89
100
|
*/
|
|
90
101
|
readonly cronline: pulumi.Output<string>;
|
|
91
102
|
/**
|
|
92
|
-
* Whether the schedule
|
|
103
|
+
* Whether the schedule is enabled or not.
|
|
93
104
|
*/
|
|
94
105
|
readonly enabled: pulumi.Output<boolean>;
|
|
95
106
|
/**
|
|
96
|
-
*
|
|
107
|
+
* The environment variables that scheduled builds should use.
|
|
97
108
|
*/
|
|
98
109
|
readonly env: pulumi.Output<{
|
|
99
110
|
[key: string]: string;
|
|
100
111
|
} | undefined>;
|
|
101
112
|
/**
|
|
102
|
-
*
|
|
113
|
+
* A label to describe the schedule.
|
|
103
114
|
*/
|
|
104
115
|
readonly label: pulumi.Output<string>;
|
|
105
116
|
/**
|
|
106
|
-
* The message
|
|
117
|
+
* The message the builds show for builds created by this schedule.
|
|
107
118
|
*/
|
|
108
119
|
readonly message: pulumi.Output<string | undefined>;
|
|
109
120
|
/**
|
|
110
|
-
* The ID of the pipeline that this schedule belongs to.
|
|
121
|
+
* The GraphQL ID of the pipeline that this schedule belongs to.
|
|
111
122
|
*/
|
|
112
123
|
readonly pipelineId: pulumi.Output<string>;
|
|
113
124
|
/**
|
|
114
|
-
* The UUID of the
|
|
125
|
+
* The UUID of the schedule.
|
|
115
126
|
*/
|
|
116
127
|
readonly uuid: pulumi.Output<string>;
|
|
117
128
|
/**
|
|
@@ -128,41 +139,41 @@ export declare class Schedule extends pulumi.CustomResource {
|
|
|
128
139
|
*/
|
|
129
140
|
export interface ScheduleState {
|
|
130
141
|
/**
|
|
131
|
-
* The branch
|
|
142
|
+
* The branch that the schedule should run on.
|
|
132
143
|
*/
|
|
133
144
|
branch?: pulumi.Input<string>;
|
|
134
145
|
/**
|
|
135
|
-
* The commit
|
|
146
|
+
* The commit that the schedule should run on.
|
|
136
147
|
*/
|
|
137
148
|
commit?: pulumi.Input<string>;
|
|
138
149
|
/**
|
|
139
|
-
*
|
|
150
|
+
* The cronline that describes when the schedule should run. See[here](https://buildkite.com/docs/pipelines/scheduled-builds#schedule-intervals) for supported syntax.
|
|
140
151
|
*/
|
|
141
152
|
cronline?: pulumi.Input<string>;
|
|
142
153
|
/**
|
|
143
|
-
* Whether the schedule
|
|
154
|
+
* Whether the schedule is enabled or not.
|
|
144
155
|
*/
|
|
145
156
|
enabled?: pulumi.Input<boolean>;
|
|
146
157
|
/**
|
|
147
|
-
*
|
|
158
|
+
* The environment variables that scheduled builds should use.
|
|
148
159
|
*/
|
|
149
160
|
env?: pulumi.Input<{
|
|
150
161
|
[key: string]: pulumi.Input<string>;
|
|
151
162
|
}>;
|
|
152
163
|
/**
|
|
153
|
-
*
|
|
164
|
+
* A label to describe the schedule.
|
|
154
165
|
*/
|
|
155
166
|
label?: pulumi.Input<string>;
|
|
156
167
|
/**
|
|
157
|
-
* The message
|
|
168
|
+
* The message the builds show for builds created by this schedule.
|
|
158
169
|
*/
|
|
159
170
|
message?: pulumi.Input<string>;
|
|
160
171
|
/**
|
|
161
|
-
* The ID of the pipeline that this schedule belongs to.
|
|
172
|
+
* The GraphQL ID of the pipeline that this schedule belongs to.
|
|
162
173
|
*/
|
|
163
174
|
pipelineId?: pulumi.Input<string>;
|
|
164
175
|
/**
|
|
165
|
-
* The UUID of the
|
|
176
|
+
* The UUID of the schedule.
|
|
166
177
|
*/
|
|
167
178
|
uuid?: pulumi.Input<string>;
|
|
168
179
|
}
|
|
@@ -171,37 +182,37 @@ export interface ScheduleState {
|
|
|
171
182
|
*/
|
|
172
183
|
export interface ScheduleArgs {
|
|
173
184
|
/**
|
|
174
|
-
* The branch
|
|
185
|
+
* The branch that the schedule should run on.
|
|
175
186
|
*/
|
|
176
187
|
branch: pulumi.Input<string>;
|
|
177
188
|
/**
|
|
178
|
-
* The commit
|
|
189
|
+
* The commit that the schedule should run on.
|
|
179
190
|
*/
|
|
180
191
|
commit?: pulumi.Input<string>;
|
|
181
192
|
/**
|
|
182
|
-
*
|
|
193
|
+
* The cronline that describes when the schedule should run. See[here](https://buildkite.com/docs/pipelines/scheduled-builds#schedule-intervals) for supported syntax.
|
|
183
194
|
*/
|
|
184
195
|
cronline: pulumi.Input<string>;
|
|
185
196
|
/**
|
|
186
|
-
* Whether the schedule
|
|
197
|
+
* Whether the schedule is enabled or not.
|
|
187
198
|
*/
|
|
188
199
|
enabled?: pulumi.Input<boolean>;
|
|
189
200
|
/**
|
|
190
|
-
*
|
|
201
|
+
* The environment variables that scheduled builds should use.
|
|
191
202
|
*/
|
|
192
203
|
env?: pulumi.Input<{
|
|
193
204
|
[key: string]: pulumi.Input<string>;
|
|
194
205
|
}>;
|
|
195
206
|
/**
|
|
196
|
-
*
|
|
207
|
+
* A label to describe the schedule.
|
|
197
208
|
*/
|
|
198
209
|
label: pulumi.Input<string>;
|
|
199
210
|
/**
|
|
200
|
-
* The message
|
|
211
|
+
* The message the builds show for builds created by this schedule.
|
|
201
212
|
*/
|
|
202
213
|
message?: pulumi.Input<string>;
|
|
203
214
|
/**
|
|
204
|
-
* The ID of the pipeline that this schedule belongs to.
|
|
215
|
+
* The GraphQL ID of the pipeline that this schedule belongs to.
|
|
205
216
|
*/
|
|
206
217
|
pipelineId: pulumi.Input<string>;
|
|
207
218
|
}
|
package/pipeline/schedule.js
CHANGED
|
@@ -6,65 +6,76 @@ exports.Schedule = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* A pipeline schedule is a schedule that triggers a pipeline to run at a specific time.
|
|
10
10
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* Buildkite Documentation: https://buildkite.com/docs/pipelines/scheduled-builds
|
|
11
|
+
* You can find more information in the [documentation](https://buildkite.com/docs/pipelines/scheduled-builds).
|
|
14
12
|
*
|
|
15
13
|
* ## Example Usage
|
|
16
14
|
*
|
|
15
|
+
* <!--Start PulumiCodeChooser -->
|
|
17
16
|
* ```typescript
|
|
18
17
|
* import * as pulumi from "@pulumi/pulumi";
|
|
19
18
|
* import * as buildkite from "@pulumiverse/buildkite";
|
|
20
19
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
20
|
+
* // create a pipeline
|
|
21
|
+
* const pipeline = new buildkite.pipeline.Pipeline("pipeline", {repository: "https://github.com/..."});
|
|
22
|
+
* // schedule a build at midnight every day
|
|
23
|
+
* const nightly = new buildkite.pipeline.Schedule("nightly", {
|
|
24
|
+
* pipelineId: buildkite_pipeline.repo.id,
|
|
23
25
|
* label: "Nightly build",
|
|
24
26
|
* cronline: "@midnight",
|
|
25
|
-
* branch: buildkite_pipeline.
|
|
27
|
+
* branch: buildkite_pipeline.repo.default_branch,
|
|
26
28
|
* });
|
|
27
29
|
* ```
|
|
30
|
+
* <!--End PulumiCodeChooser -->
|
|
28
31
|
*
|
|
29
32
|
* ## Import
|
|
30
33
|
*
|
|
31
|
-
*
|
|
34
|
+
* import a pipeline schedule resource using the schedules GraphQL ID
|
|
32
35
|
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
+
* #
|
|
37
|
+
*
|
|
38
|
+
* you can use this query to find the schedule:
|
|
39
|
+
*
|
|
40
|
+
* query getPipelineScheduleId {
|
|
36
41
|
*
|
|
37
|
-
*
|
|
42
|
+
* organization(slug: "ORGANIZATION_SLUG") {
|
|
38
43
|
*
|
|
39
|
-
*
|
|
44
|
+
* pipelines(first: 5, search: "PIPELINE_SEARCH_TERM") {
|
|
40
45
|
*
|
|
41
|
-
*
|
|
46
|
+
* edges{
|
|
42
47
|
*
|
|
43
|
-
*
|
|
48
|
+
* node{
|
|
44
49
|
*
|
|
45
|
-
*
|
|
50
|
+
* name
|
|
46
51
|
*
|
|
47
|
-
*
|
|
52
|
+
* schedules{
|
|
48
53
|
*
|
|
49
|
-
*
|
|
54
|
+
* edges{
|
|
50
55
|
*
|
|
51
|
-
*
|
|
56
|
+
* node{
|
|
52
57
|
*
|
|
53
|
-
*
|
|
58
|
+
* id
|
|
54
59
|
*
|
|
55
|
-
*
|
|
60
|
+
* }
|
|
56
61
|
*
|
|
57
|
-
*
|
|
62
|
+
* }
|
|
58
63
|
*
|
|
59
|
-
*
|
|
64
|
+
* }
|
|
60
65
|
*
|
|
61
|
-
*
|
|
66
|
+
* }
|
|
62
67
|
*
|
|
63
|
-
*
|
|
68
|
+
* }
|
|
64
69
|
*
|
|
65
|
-
*
|
|
70
|
+
* }
|
|
66
71
|
*
|
|
67
|
-
*
|
|
72
|
+
* }
|
|
73
|
+
*
|
|
74
|
+
* }
|
|
75
|
+
*
|
|
76
|
+
* ```sh
|
|
77
|
+
* $ pulumi import buildkite:Pipeline/schedule:Schedule test UGlwZWxpgm5Tf2hhZHVsZ35tLWRk4DdmN7c4LTA5M2ItNDM9YS0gMWE0LTAwZDUgYTAxYvRf49==
|
|
78
|
+
* ```
|
|
68
79
|
*/
|
|
69
80
|
class Schedule extends pulumi.CustomResource {
|
|
70
81
|
/**
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuEG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EA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cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YACpD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,SAAS,CAAC,GAAG,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"}
|
package/pipeline/team.d.ts
CHANGED
|
@@ -1,51 +1,62 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
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
|
|
3
|
+
* Manage team access to a pipeline.
|
|
8
4
|
*
|
|
9
5
|
* ## Example Usage
|
|
10
6
|
*
|
|
7
|
+
* <!--Start PulumiCodeChooser -->
|
|
11
8
|
* ```typescript
|
|
12
9
|
* import * as pulumi from "@pulumi/pulumi";
|
|
13
10
|
* import * as buildkite from "@pulumiverse/buildkite";
|
|
14
11
|
*
|
|
15
|
-
* const
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
12
|
+
* const pipeline = new buildkite.pipeline.Pipeline("pipeline", {repository: "https://github.com/..."});
|
|
13
|
+
* const team = new buildkite.team.Team("team", {
|
|
14
|
+
* privacy: "VISIBLE",
|
|
15
|
+
* defaultTeam: false,
|
|
16
|
+
* defaultMemberRole: "MEMBER",
|
|
17
|
+
* });
|
|
18
|
+
* // allow everyone in the "Everyone" team read-only access to pipeline
|
|
19
|
+
* const pipelineTeam = new buildkite.pipeline.Team("pipelineTeam", {
|
|
20
|
+
* pipelineId: pipeline.id,
|
|
21
|
+
* teamId: team.id,
|
|
22
|
+
* accessLevel: "READ_ONLY",
|
|
19
23
|
* });
|
|
20
24
|
* ```
|
|
25
|
+
* <!--End PulumiCodeChooser -->
|
|
21
26
|
*
|
|
22
27
|
* ## Import
|
|
23
28
|
*
|
|
24
|
-
*
|
|
29
|
+
* import a pipeline team resource using the GraphQL ID
|
|
25
30
|
*
|
|
26
|
-
*
|
|
27
|
-
* $ pulumi import buildkite:Pipeline/team:Team guests VGVhbS0tLWU1YjQyMDQyLTUzN2QtNDZjNi04MjY0LTliZjFkMzkyYjZkNQ==
|
|
28
|
-
* ```
|
|
31
|
+
* #
|
|
29
32
|
*
|
|
30
|
-
*
|
|
33
|
+
* you can use this query to find the ID:
|
|
31
34
|
*
|
|
32
|
-
*
|
|
35
|
+
* query getPipelineTeamId {
|
|
33
36
|
*
|
|
34
|
-
*
|
|
37
|
+
* pipeline(slug: "ORGANIZATION_SLUG/PIPELINE_SLUG") {
|
|
35
38
|
*
|
|
36
|
-
*
|
|
39
|
+
* teams(first: 5, search: "PIPELINE_SEARCH_TERM") {
|
|
37
40
|
*
|
|
38
|
-
*
|
|
41
|
+
* edges{
|
|
39
42
|
*
|
|
40
|
-
*
|
|
43
|
+
* node{
|
|
41
44
|
*
|
|
42
|
-
*
|
|
45
|
+
* id
|
|
43
46
|
*
|
|
44
|
-
*
|
|
47
|
+
* }
|
|
45
48
|
*
|
|
46
|
-
*
|
|
49
|
+
* }
|
|
47
50
|
*
|
|
48
|
-
*
|
|
51
|
+
* }
|
|
52
|
+
*
|
|
53
|
+
* }
|
|
54
|
+
*
|
|
55
|
+
* }
|
|
56
|
+
*
|
|
57
|
+
* ```sh
|
|
58
|
+
* $ pulumi import buildkite:Pipeline/team:Team guests VGVhbS0tLWU1YjQyMDQyLTUzN2QtNDZjNi04MjY0LTliZjFkMzkyYjZkNQ==
|
|
59
|
+
* ```
|
|
49
60
|
*/
|
|
50
61
|
export declare class Team extends pulumi.CustomResource {
|
|
51
62
|
/**
|
|
@@ -64,7 +75,7 @@ export declare class Team extends pulumi.CustomResource {
|
|
|
64
75
|
*/
|
|
65
76
|
static isInstance(obj: any): obj is Team;
|
|
66
77
|
/**
|
|
67
|
-
* The level
|
|
78
|
+
* The access level for the team. Either `READ_ONLY`, `BUILD_AND_READ` or `MANAGE_BUILD_AND_READ`.
|
|
68
79
|
*/
|
|
69
80
|
readonly accessLevel: pulumi.Output<string>;
|
|
70
81
|
/**
|
|
@@ -72,11 +83,11 @@ export declare class Team extends pulumi.CustomResource {
|
|
|
72
83
|
*/
|
|
73
84
|
readonly pipelineId: pulumi.Output<string>;
|
|
74
85
|
/**
|
|
75
|
-
* The GraphQL ID of the team
|
|
86
|
+
* The GraphQL ID of the team.
|
|
76
87
|
*/
|
|
77
88
|
readonly teamId: pulumi.Output<string>;
|
|
78
89
|
/**
|
|
79
|
-
* The UUID of the pipeline
|
|
90
|
+
* The UUID of the pipeline-team relationship.
|
|
80
91
|
*/
|
|
81
92
|
readonly uuid: pulumi.Output<string>;
|
|
82
93
|
/**
|
|
@@ -93,7 +104,7 @@ export declare class Team extends pulumi.CustomResource {
|
|
|
93
104
|
*/
|
|
94
105
|
export interface TeamState {
|
|
95
106
|
/**
|
|
96
|
-
* The level
|
|
107
|
+
* The access level for the team. Either `READ_ONLY`, `BUILD_AND_READ` or `MANAGE_BUILD_AND_READ`.
|
|
97
108
|
*/
|
|
98
109
|
accessLevel?: pulumi.Input<string>;
|
|
99
110
|
/**
|
|
@@ -101,11 +112,11 @@ export interface TeamState {
|
|
|
101
112
|
*/
|
|
102
113
|
pipelineId?: pulumi.Input<string>;
|
|
103
114
|
/**
|
|
104
|
-
* The GraphQL ID of the team
|
|
115
|
+
* The GraphQL ID of the team.
|
|
105
116
|
*/
|
|
106
117
|
teamId?: pulumi.Input<string>;
|
|
107
118
|
/**
|
|
108
|
-
* The UUID of the pipeline
|
|
119
|
+
* The UUID of the pipeline-team relationship.
|
|
109
120
|
*/
|
|
110
121
|
uuid?: pulumi.Input<string>;
|
|
111
122
|
}
|
|
@@ -114,7 +125,7 @@ export interface TeamState {
|
|
|
114
125
|
*/
|
|
115
126
|
export interface TeamArgs {
|
|
116
127
|
/**
|
|
117
|
-
* The level
|
|
128
|
+
* The access level for the team. Either `READ_ONLY`, `BUILD_AND_READ` or `MANAGE_BUILD_AND_READ`.
|
|
118
129
|
*/
|
|
119
130
|
accessLevel: pulumi.Input<string>;
|
|
120
131
|
/**
|
|
@@ -122,7 +133,7 @@ export interface TeamArgs {
|
|
|
122
133
|
*/
|
|
123
134
|
pipelineId: pulumi.Input<string>;
|
|
124
135
|
/**
|
|
125
|
-
* The GraphQL ID of the team
|
|
136
|
+
* The GraphQL ID of the team.
|
|
126
137
|
*/
|
|
127
138
|
teamId: pulumi.Input<string>;
|
|
128
139
|
}
|
package/pipeline/team.js
CHANGED
|
@@ -6,52 +6,63 @@ exports.Team = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* This resource allows you to create and manage team configuration in a pipeline.
|
|
12
|
-
*
|
|
13
|
-
* Buildkite Documentation: https://buildkite.com/docs/pipelines/permissions#permissions-with-teams-pipeline-level-permissions
|
|
9
|
+
* Manage team access to a pipeline.
|
|
14
10
|
*
|
|
15
11
|
* ## Example Usage
|
|
16
12
|
*
|
|
13
|
+
* <!--Start PulumiCodeChooser -->
|
|
17
14
|
* ```typescript
|
|
18
15
|
* import * as pulumi from "@pulumi/pulumi";
|
|
19
16
|
* import * as buildkite from "@pulumiverse/buildkite";
|
|
20
17
|
*
|
|
21
|
-
* const
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
18
|
+
* const pipeline = new buildkite.pipeline.Pipeline("pipeline", {repository: "https://github.com/..."});
|
|
19
|
+
* const team = new buildkite.team.Team("team", {
|
|
20
|
+
* privacy: "VISIBLE",
|
|
21
|
+
* defaultTeam: false,
|
|
22
|
+
* defaultMemberRole: "MEMBER",
|
|
23
|
+
* });
|
|
24
|
+
* // allow everyone in the "Everyone" team read-only access to pipeline
|
|
25
|
+
* const pipelineTeam = new buildkite.pipeline.Team("pipelineTeam", {
|
|
26
|
+
* pipelineId: pipeline.id,
|
|
27
|
+
* teamId: team.id,
|
|
28
|
+
* accessLevel: "READ_ONLY",
|
|
25
29
|
* });
|
|
26
30
|
* ```
|
|
31
|
+
* <!--End PulumiCodeChooser -->
|
|
27
32
|
*
|
|
28
33
|
* ## Import
|
|
29
34
|
*
|
|
30
|
-
*
|
|
35
|
+
* import a pipeline team resource using the GraphQL ID
|
|
31
36
|
*
|
|
32
|
-
*
|
|
33
|
-
* $ pulumi import buildkite:Pipeline/team:Team guests VGVhbS0tLWU1YjQyMDQyLTUzN2QtNDZjNi04MjY0LTliZjFkMzkyYjZkNQ==
|
|
34
|
-
* ```
|
|
37
|
+
* #
|
|
35
38
|
*
|
|
36
|
-
*
|
|
39
|
+
* you can use this query to find the ID:
|
|
37
40
|
*
|
|
38
|
-
*
|
|
41
|
+
* query getPipelineTeamId {
|
|
39
42
|
*
|
|
40
|
-
*
|
|
43
|
+
* pipeline(slug: "ORGANIZATION_SLUG/PIPELINE_SLUG") {
|
|
41
44
|
*
|
|
42
|
-
*
|
|
45
|
+
* teams(first: 5, search: "PIPELINE_SEARCH_TERM") {
|
|
43
46
|
*
|
|
44
|
-
*
|
|
47
|
+
* edges{
|
|
45
48
|
*
|
|
46
|
-
*
|
|
49
|
+
* node{
|
|
47
50
|
*
|
|
48
|
-
*
|
|
51
|
+
* id
|
|
49
52
|
*
|
|
50
|
-
*
|
|
53
|
+
* }
|
|
51
54
|
*
|
|
52
|
-
*
|
|
55
|
+
* }
|
|
53
56
|
*
|
|
54
|
-
*
|
|
57
|
+
* }
|
|
58
|
+
*
|
|
59
|
+
* }
|
|
60
|
+
*
|
|
61
|
+
* }
|
|
62
|
+
*
|
|
63
|
+
* ```sh
|
|
64
|
+
* $ pulumi import buildkite:Pipeline/team:Team guests VGVhbS0tLWU1YjQyMDQyLTUzN2QtNDZjNi04MjY0LTliZjFkMzkyYjZkNQ==
|
|
65
|
+
* ```
|
|
55
66
|
*/
|
|
56
67
|
class Team extends pulumi.CustomResource {
|
|
57
68
|
/**
|
package/pipeline/team.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"team.js","sourceRoot":"","sources":["../../pipeline/team.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"team.js","sourceRoot":"","sources":["../../pipeline/team.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,MAAa,IAAK,SAAQ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