@pulumiverse/buildkite 2.1.0 → 2.2.0
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/agent/agentToken.d.ts +0 -8
- package/agent/agentToken.js +0 -8
- package/agent/agentToken.js.map +1 -1
- package/organization/getOrganization.d.ts +32 -0
- package/organization/getOrganization.js +32 -0
- package/organization/getOrganization.js.map +1 -1
- package/package.json +2 -2
- package/pipeline/pipeline.d.ts +10 -10
- package/types/input.d.ts +4 -0
- package/types/output.d.ts +8 -4
package/agent/agentToken.d.ts
CHANGED
|
@@ -14,14 +14,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
14
14
|
*
|
|
15
15
|
* const fleet = new buildkite.agent.AgentToken("fleet", {description: "token used by build fleet"});
|
|
16
16
|
* ```
|
|
17
|
-
*
|
|
18
|
-
* ## Import
|
|
19
|
-
*
|
|
20
|
-
* Tokens can be imported using the `GraphQL ID` (not UUID), e.g.
|
|
21
|
-
*
|
|
22
|
-
* ```sh
|
|
23
|
-
* $ pulumi import buildkite:Agent/agentToken:AgentToken fleet QWdlbnRUb2tlbi0tLTQzNWNhZDU4LWU4MWQtNDVhZi04NjM3LWIxY2Y4MDcwMjM4ZA==
|
|
24
|
-
* ```
|
|
25
17
|
*/
|
|
26
18
|
export declare class AgentToken extends pulumi.CustomResource {
|
|
27
19
|
/**
|
package/agent/agentToken.js
CHANGED
|
@@ -20,14 +20,6 @@ const utilities = require("../utilities");
|
|
|
20
20
|
*
|
|
21
21
|
* const fleet = new buildkite.agent.AgentToken("fleet", {description: "token used by build fleet"});
|
|
22
22
|
* ```
|
|
23
|
-
*
|
|
24
|
-
* ## Import
|
|
25
|
-
*
|
|
26
|
-
* Tokens can be imported using the `GraphQL ID` (not UUID), e.g.
|
|
27
|
-
*
|
|
28
|
-
* ```sh
|
|
29
|
-
* $ pulumi import buildkite:Agent/agentToken:AgentToken fleet QWdlbnRUb2tlbi0tLTQzNWNhZDU4LWU4MWQtNDVhZi04NjM3LWIxY2Y4MDcwMjM4ZA==
|
|
30
|
-
* ```
|
|
31
23
|
*/
|
|
32
24
|
class AgentToken extends pulumi.CustomResource {
|
|
33
25
|
/**
|
package/agent/agentToken.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentToken.js","sourceRoot":"","sources":["../../agent/agentToken.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"agentToken.js","sourceRoot":"","sources":["../../agent/agentToken.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;GAeG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjE,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,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;IAyBD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA0C,CAAC;YACzD,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3D;aAAM;YACH,MAAM,IAAI,GAAG,WAAyC,CAAC;YACvD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC5C,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,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AAnEL,gCAoEC;AAtDG,gBAAgB;AACO,uBAAY,GAAG,uCAAuC,CAAC"}
|
|
@@ -4,6 +4,22 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
4
4
|
*
|
|
5
5
|
* Use this data source to look up the organization settings. It currently supports
|
|
6
6
|
* allowed_api_ip_addresses.
|
|
7
|
+
*
|
|
8
|
+
* ## Example Usage
|
|
9
|
+
*
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
+
* import * as aws from "@pulumi/aws";
|
|
13
|
+
* import * as buildkite from "@pulumi/buildkite";
|
|
14
|
+
*
|
|
15
|
+
* const testkite = buildkite.Organization.getOrganization({});
|
|
16
|
+
* const fromBuildkite = new aws.ec2.SecurityGroup("fromBuildkite", {ingress: [{
|
|
17
|
+
* fromPort: "*",
|
|
18
|
+
* toPort: 443,
|
|
19
|
+
* protocol: "tcp",
|
|
20
|
+
* cidrBlocks: data.buildkite_organization.allowed_api_ip_addresses,
|
|
21
|
+
* }]});
|
|
22
|
+
* ```
|
|
7
23
|
*/
|
|
8
24
|
export declare function getOrganization(args?: GetOrganizationArgs, opts?: pulumi.InvokeOptions): Promise<GetOrganizationResult>;
|
|
9
25
|
/**
|
|
@@ -34,6 +50,22 @@ export interface GetOrganizationResult {
|
|
|
34
50
|
*
|
|
35
51
|
* Use this data source to look up the organization settings. It currently supports
|
|
36
52
|
* allowed_api_ip_addresses.
|
|
53
|
+
*
|
|
54
|
+
* ## Example Usage
|
|
55
|
+
*
|
|
56
|
+
* ```typescript
|
|
57
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
58
|
+
* import * as aws from "@pulumi/aws";
|
|
59
|
+
* import * as buildkite from "@pulumi/buildkite";
|
|
60
|
+
*
|
|
61
|
+
* const testkite = buildkite.Organization.getOrganization({});
|
|
62
|
+
* const fromBuildkite = new aws.ec2.SecurityGroup("fromBuildkite", {ingress: [{
|
|
63
|
+
* fromPort: "*",
|
|
64
|
+
* toPort: 443,
|
|
65
|
+
* protocol: "tcp",
|
|
66
|
+
* cidrBlocks: data.buildkite_organization.allowed_api_ip_addresses,
|
|
67
|
+
* }]});
|
|
68
|
+
* ```
|
|
37
69
|
*/
|
|
38
70
|
export declare function getOrganizationOutput(args?: GetOrganizationOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetOrganizationResult>;
|
|
39
71
|
/**
|
|
@@ -10,6 +10,22 @@ const utilities = require("../utilities");
|
|
|
10
10
|
*
|
|
11
11
|
* Use this data source to look up the organization settings. It currently supports
|
|
12
12
|
* allowed_api_ip_addresses.
|
|
13
|
+
*
|
|
14
|
+
* ## Example Usage
|
|
15
|
+
*
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import * as aws from "@pulumi/aws";
|
|
19
|
+
* import * as buildkite from "@pulumi/buildkite";
|
|
20
|
+
*
|
|
21
|
+
* const testkite = buildkite.Organization.getOrganization({});
|
|
22
|
+
* const fromBuildkite = new aws.ec2.SecurityGroup("fromBuildkite", {ingress: [{
|
|
23
|
+
* fromPort: "*",
|
|
24
|
+
* toPort: 443,
|
|
25
|
+
* protocol: "tcp",
|
|
26
|
+
* cidrBlocks: data.buildkite_organization.allowed_api_ip_addresses,
|
|
27
|
+
* }]});
|
|
28
|
+
* ```
|
|
13
29
|
*/
|
|
14
30
|
function getOrganization(args, opts) {
|
|
15
31
|
args = args || {};
|
|
@@ -24,6 +40,22 @@ exports.getOrganization = getOrganization;
|
|
|
24
40
|
*
|
|
25
41
|
* Use this data source to look up the organization settings. It currently supports
|
|
26
42
|
* allowed_api_ip_addresses.
|
|
43
|
+
*
|
|
44
|
+
* ## Example Usage
|
|
45
|
+
*
|
|
46
|
+
* ```typescript
|
|
47
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
48
|
+
* import * as aws from "@pulumi/aws";
|
|
49
|
+
* import * as buildkite from "@pulumi/buildkite";
|
|
50
|
+
*
|
|
51
|
+
* const testkite = buildkite.Organization.getOrganization({});
|
|
52
|
+
* const fromBuildkite = new aws.ec2.SecurityGroup("fromBuildkite", {ingress: [{
|
|
53
|
+
* fromPort: "*",
|
|
54
|
+
* toPort: 443,
|
|
55
|
+
* protocol: "tcp",
|
|
56
|
+
* cidrBlocks: data.buildkite_organization.allowed_api_ip_addresses,
|
|
57
|
+
* }]});
|
|
58
|
+
* ```
|
|
27
59
|
*/
|
|
28
60
|
function getOrganizationOutput(args, opts) {
|
|
29
61
|
return pulumi.output(args).apply((a) => getOrganization(a, opts));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getOrganization.js","sourceRoot":"","sources":["../../organization/getOrganization.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"getOrganization.js","sourceRoot":"","sources":["../../organization/getOrganization.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,eAAe,CAAC,IAA0B,EAAE,IAA2B;IACnF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wDAAwD,EAAE;QACnF,uBAAuB,EAAE,IAAI,CAAC,qBAAqB;KACtD,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,0CAOC;AA0BD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,qBAAqB,CAAC,IAAgC,EAAE,IAA2B;IAC/F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,eAAe,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC1E,CAAC;AAFD,sDAEC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumiverse/buildkite",
|
|
3
|
-
"version": "v2.
|
|
3
|
+
"version": "v2.2.0",
|
|
4
4
|
"description": "A Pulumi package for creating and managing Buildkite resources.",
|
|
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 buildkite v2.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource buildkite v2.2.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
package/pipeline/pipeline.d.ts
CHANGED
|
@@ -114,7 +114,7 @@ export declare class Pipeline extends pulumi.CustomResource {
|
|
|
114
114
|
/**
|
|
115
115
|
* A boolean on whether or not to allow rebuilds for the pipeline.
|
|
116
116
|
*/
|
|
117
|
-
readonly allowRebuilds: pulumi.Output<boolean
|
|
117
|
+
readonly allowRebuilds: pulumi.Output<boolean>;
|
|
118
118
|
/**
|
|
119
119
|
* The pipeline's last build status so you can display build status badge.
|
|
120
120
|
*/
|
|
@@ -122,15 +122,15 @@ export declare class Pipeline extends pulumi.CustomResource {
|
|
|
122
122
|
/**
|
|
123
123
|
* Limit which branches and tags cause new builds to be created, either via a code push or via the Builds REST API.
|
|
124
124
|
*/
|
|
125
|
-
readonly branchConfiguration: pulumi.Output<string
|
|
125
|
+
readonly branchConfiguration: pulumi.Output<string>;
|
|
126
126
|
/**
|
|
127
127
|
* A boolean to enable automatically cancelling any running builds on the same branch when a new build is created.
|
|
128
128
|
*/
|
|
129
|
-
readonly cancelIntermediateBuilds: pulumi.Output<boolean
|
|
129
|
+
readonly cancelIntermediateBuilds: pulumi.Output<boolean>;
|
|
130
130
|
/**
|
|
131
131
|
* Limit which branches build cancelling applies to, for example !master will ensure that the master branch won't have its builds automatically cancelled.
|
|
132
132
|
*/
|
|
133
|
-
readonly cancelIntermediateBuildsBranchFilter: pulumi.Output<string
|
|
133
|
+
readonly cancelIntermediateBuildsBranchFilter: pulumi.Output<string>;
|
|
134
134
|
/**
|
|
135
135
|
* The GraphQL ID of the cluster you want to use for the pipeline.
|
|
136
136
|
*/
|
|
@@ -138,11 +138,11 @@ export declare class Pipeline extends pulumi.CustomResource {
|
|
|
138
138
|
/**
|
|
139
139
|
* The default branch to prefill when new builds are created or triggered, usually main or master but can be anything.
|
|
140
140
|
*/
|
|
141
|
-
readonly defaultBranch: pulumi.Output<string
|
|
141
|
+
readonly defaultBranch: pulumi.Output<string>;
|
|
142
142
|
/**
|
|
143
143
|
* The default timeout for commands in this pipeline, in minutes.
|
|
144
144
|
*/
|
|
145
|
-
readonly defaultTimeoutInMinutes: pulumi.Output<number
|
|
145
|
+
readonly defaultTimeoutInMinutes: pulumi.Output<number>;
|
|
146
146
|
/**
|
|
147
147
|
* 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>"
|
|
148
148
|
*/
|
|
@@ -150,11 +150,11 @@ export declare class Pipeline extends pulumi.CustomResource {
|
|
|
150
150
|
/**
|
|
151
151
|
* A description of the pipeline.
|
|
152
152
|
*/
|
|
153
|
-
readonly description: pulumi.Output<string
|
|
153
|
+
readonly description: pulumi.Output<string>;
|
|
154
154
|
/**
|
|
155
155
|
* The maximum timeout for commands in this pipeline, in minutes.
|
|
156
156
|
*/
|
|
157
|
-
readonly maximumTimeoutInMinutes: pulumi.Output<number
|
|
157
|
+
readonly maximumTimeoutInMinutes: pulumi.Output<number>;
|
|
158
158
|
/**
|
|
159
159
|
* The name of the pipeline.
|
|
160
160
|
*/
|
|
@@ -170,11 +170,11 @@ export declare class Pipeline extends pulumi.CustomResource {
|
|
|
170
170
|
/**
|
|
171
171
|
* A boolean to enable automatically skipping any unstarted builds on the same branch when a new build is created.
|
|
172
172
|
*/
|
|
173
|
-
readonly skipIntermediateBuilds: pulumi.Output<boolean
|
|
173
|
+
readonly skipIntermediateBuilds: pulumi.Output<boolean>;
|
|
174
174
|
/**
|
|
175
175
|
* Limit which branches build skipping applies to, for example `!master` will ensure that the master branch won't have its builds automatically skipped.
|
|
176
176
|
*/
|
|
177
|
-
readonly skipIntermediateBuildsBranchFilter: pulumi.Output<string
|
|
177
|
+
readonly skipIntermediateBuildsBranchFilter: pulumi.Output<string>;
|
|
178
178
|
/**
|
|
179
179
|
* The buildkite slug of the team.
|
|
180
180
|
*/
|
package/types/input.d.ts
CHANGED
|
@@ -66,6 +66,10 @@ export declare namespace Pipeline {
|
|
|
66
66
|
* Whether to create a separate status for pull request builds, allowing you to require a passing pull request build in your [required status checks](https://help.github.com/en/articles/enabling-required-status-checks) in GitHub.
|
|
67
67
|
*/
|
|
68
68
|
separatePullRequestStatuses?: pulumi.Input<boolean>;
|
|
69
|
+
/**
|
|
70
|
+
* Whether to skip creating a new build if an existing build for the commit and branch already exists.
|
|
71
|
+
*/
|
|
72
|
+
skipBuildsForExistingCommits?: pulumi.Input<boolean>;
|
|
69
73
|
/**
|
|
70
74
|
* Whether to skip creating a new build for a pull request if an existing build for the commit and branch already exists.
|
|
71
75
|
*/
|
package/types/output.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare namespace Pipeline {
|
|
|
3
3
|
/**
|
|
4
4
|
* Whether to create builds when branches are pushed.
|
|
5
5
|
*/
|
|
6
|
-
buildBranches
|
|
6
|
+
buildBranches?: boolean;
|
|
7
7
|
/**
|
|
8
8
|
* Whether to create builds for pull requests from third-party forks.
|
|
9
9
|
*/
|
|
@@ -16,7 +16,7 @@ export declare namespace Pipeline {
|
|
|
16
16
|
/**
|
|
17
17
|
* Whether to create builds for commits that are part of a Pull Request.
|
|
18
18
|
*/
|
|
19
|
-
buildPullRequests
|
|
19
|
+
buildPullRequests?: boolean;
|
|
20
20
|
/**
|
|
21
21
|
* Whether to create builds when tags are pushed.
|
|
22
22
|
*
|
|
@@ -48,7 +48,7 @@ export declare namespace Pipeline {
|
|
|
48
48
|
/**
|
|
49
49
|
* Whether to update the status of commits in Bitbucket or GitHub.
|
|
50
50
|
*/
|
|
51
|
-
publishCommitStatus
|
|
51
|
+
publishCommitStatus?: boolean;
|
|
52
52
|
/**
|
|
53
53
|
* Whether to create a separate status for each job in a build, allowing you to see the status of each job directly in Bitbucket or GitHub.
|
|
54
54
|
*/
|
|
@@ -65,10 +65,14 @@ export declare namespace Pipeline {
|
|
|
65
65
|
* Whether to create a separate status for pull request builds, allowing you to require a passing pull request build in your [required status checks](https://help.github.com/en/articles/enabling-required-status-checks) in GitHub.
|
|
66
66
|
*/
|
|
67
67
|
separatePullRequestStatuses: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Whether to skip creating a new build if an existing build for the commit and branch already exists.
|
|
70
|
+
*/
|
|
71
|
+
skipBuildsForExistingCommits?: boolean;
|
|
68
72
|
/**
|
|
69
73
|
* Whether to skip creating a new build for a pull request if an existing build for the commit and branch already exists.
|
|
70
74
|
*/
|
|
71
|
-
skipPullRequestBuildsForExistingCommits
|
|
75
|
+
skipPullRequestBuildsForExistingCommits?: boolean;
|
|
72
76
|
/**
|
|
73
77
|
* What type of event to trigger builds on. Must be one of:
|
|
74
78
|
*/
|