@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
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## # Resource: testSuite
|
|
4
|
+
*
|
|
5
|
+
* This resources allows you to create and manage a Test Suite.
|
|
6
|
+
*
|
|
7
|
+
* Buildkite documentation: https://buildkite.com/docs/test-analytics
|
|
8
|
+
*
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as buildkite from "@pulumiverse/buildkite";
|
|
14
|
+
*
|
|
15
|
+
* const test = new buildkite.team.Team("test", {
|
|
16
|
+
* privacy: "VISIBLE",
|
|
17
|
+
* defaultTeam: false,
|
|
18
|
+
* defaultMemberRole: "MEMBER",
|
|
19
|
+
* });
|
|
20
|
+
* const unitTests = new buildkite.testsuite.TestSuite("unitTests", {
|
|
21
|
+
* defaultBranch: "main",
|
|
22
|
+
* teamOwnerId: test.id,
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare class TestSuite extends pulumi.CustomResource {
|
|
27
|
+
/**
|
|
28
|
+
* Get an existing TestSuite resource's state with the given name, ID, and optional extra
|
|
29
|
+
* properties used to qualify the lookup.
|
|
30
|
+
*
|
|
31
|
+
* @param name The _unique_ name of the resulting resource.
|
|
32
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
33
|
+
* @param state Any extra arguments used during the lookup.
|
|
34
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
35
|
+
*/
|
|
36
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TestSuiteState, opts?: pulumi.CustomResourceOptions): TestSuite;
|
|
37
|
+
/**
|
|
38
|
+
* Returns true if the given object is an instance of TestSuite. This is designed to work even
|
|
39
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
40
|
+
*/
|
|
41
|
+
static isInstance(obj: any): obj is TestSuite;
|
|
42
|
+
/**
|
|
43
|
+
* This is the unique API token used when send test results.
|
|
44
|
+
*/
|
|
45
|
+
readonly apiToken: pulumi.Output<string>;
|
|
46
|
+
/**
|
|
47
|
+
* This is the default branch used to compare tests against.
|
|
48
|
+
*/
|
|
49
|
+
readonly defaultBranch: pulumi.Output<string>;
|
|
50
|
+
/**
|
|
51
|
+
* This is the name of the test suite.
|
|
52
|
+
*/
|
|
53
|
+
readonly name: pulumi.Output<string>;
|
|
54
|
+
/**
|
|
55
|
+
* This is the unique slug generated from the name upon creation.
|
|
56
|
+
*/
|
|
57
|
+
readonly slug: pulumi.Output<string>;
|
|
58
|
+
/**
|
|
59
|
+
* This is a single team linked to the test suite upon creation.
|
|
60
|
+
*/
|
|
61
|
+
readonly teamOwnerId: pulumi.Output<string>;
|
|
62
|
+
/**
|
|
63
|
+
* This is the UUID of the suite.
|
|
64
|
+
*/
|
|
65
|
+
readonly uuid: pulumi.Output<string>;
|
|
66
|
+
/**
|
|
67
|
+
* Create a TestSuite resource with the given unique name, arguments, and options.
|
|
68
|
+
*
|
|
69
|
+
* @param name The _unique_ name of the resource.
|
|
70
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
71
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
72
|
+
*/
|
|
73
|
+
constructor(name: string, args: TestSuiteArgs, opts?: pulumi.CustomResourceOptions);
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Input properties used for looking up and filtering TestSuite resources.
|
|
77
|
+
*/
|
|
78
|
+
export interface TestSuiteState {
|
|
79
|
+
/**
|
|
80
|
+
* This is the unique API token used when send test results.
|
|
81
|
+
*/
|
|
82
|
+
apiToken?: pulumi.Input<string>;
|
|
83
|
+
/**
|
|
84
|
+
* This is the default branch used to compare tests against.
|
|
85
|
+
*/
|
|
86
|
+
defaultBranch?: pulumi.Input<string>;
|
|
87
|
+
/**
|
|
88
|
+
* This is the name of the test suite.
|
|
89
|
+
*/
|
|
90
|
+
name?: pulumi.Input<string>;
|
|
91
|
+
/**
|
|
92
|
+
* This is the unique slug generated from the name upon creation.
|
|
93
|
+
*/
|
|
94
|
+
slug?: pulumi.Input<string>;
|
|
95
|
+
/**
|
|
96
|
+
* This is a single team linked to the test suite upon creation.
|
|
97
|
+
*/
|
|
98
|
+
teamOwnerId?: pulumi.Input<string>;
|
|
99
|
+
/**
|
|
100
|
+
* This is the UUID of the suite.
|
|
101
|
+
*/
|
|
102
|
+
uuid?: pulumi.Input<string>;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* The set of arguments for constructing a TestSuite resource.
|
|
106
|
+
*/
|
|
107
|
+
export interface TestSuiteArgs {
|
|
108
|
+
/**
|
|
109
|
+
* This is the default branch used to compare tests against.
|
|
110
|
+
*/
|
|
111
|
+
defaultBranch: pulumi.Input<string>;
|
|
112
|
+
/**
|
|
113
|
+
* This is the name of the test suite.
|
|
114
|
+
*/
|
|
115
|
+
name?: pulumi.Input<string>;
|
|
116
|
+
/**
|
|
117
|
+
* This is a single team linked to the test suite upon creation.
|
|
118
|
+
*/
|
|
119
|
+
teamOwnerId: pulumi.Input<string>;
|
|
120
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.TestSuite = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## # Resource: testSuite
|
|
10
|
+
*
|
|
11
|
+
* This resources allows you to create and manage a Test Suite.
|
|
12
|
+
*
|
|
13
|
+
* Buildkite documentation: https://buildkite.com/docs/test-analytics
|
|
14
|
+
*
|
|
15
|
+
* ## Example Usage
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as buildkite from "@pulumiverse/buildkite";
|
|
20
|
+
*
|
|
21
|
+
* const test = new buildkite.team.Team("test", {
|
|
22
|
+
* privacy: "VISIBLE",
|
|
23
|
+
* defaultTeam: false,
|
|
24
|
+
* defaultMemberRole: "MEMBER",
|
|
25
|
+
* });
|
|
26
|
+
* const unitTests = new buildkite.testsuite.TestSuite("unitTests", {
|
|
27
|
+
* defaultBranch: "main",
|
|
28
|
+
* teamOwnerId: test.id,
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
class TestSuite extends pulumi.CustomResource {
|
|
33
|
+
/**
|
|
34
|
+
* Get an existing TestSuite resource's state with the given name, ID, and optional extra
|
|
35
|
+
* properties used to qualify the lookup.
|
|
36
|
+
*
|
|
37
|
+
* @param name The _unique_ name of the resulting resource.
|
|
38
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
39
|
+
* @param state Any extra arguments used during the lookup.
|
|
40
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
41
|
+
*/
|
|
42
|
+
static get(name, id, state, opts) {
|
|
43
|
+
return new TestSuite(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Returns true if the given object is an instance of TestSuite. This is designed to work even
|
|
47
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
48
|
+
*/
|
|
49
|
+
static isInstance(obj) {
|
|
50
|
+
if (obj === undefined || obj === null) {
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
return obj['__pulumiType'] === TestSuite.__pulumiType;
|
|
54
|
+
}
|
|
55
|
+
constructor(name, argsOrState, opts) {
|
|
56
|
+
let resourceInputs = {};
|
|
57
|
+
opts = opts || {};
|
|
58
|
+
if (opts.id) {
|
|
59
|
+
const state = argsOrState;
|
|
60
|
+
resourceInputs["apiToken"] = state ? state.apiToken : undefined;
|
|
61
|
+
resourceInputs["defaultBranch"] = state ? state.defaultBranch : undefined;
|
|
62
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
63
|
+
resourceInputs["slug"] = state ? state.slug : undefined;
|
|
64
|
+
resourceInputs["teamOwnerId"] = state ? state.teamOwnerId : undefined;
|
|
65
|
+
resourceInputs["uuid"] = state ? state.uuid : undefined;
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
const args = argsOrState;
|
|
69
|
+
if ((!args || args.defaultBranch === undefined) && !opts.urn) {
|
|
70
|
+
throw new Error("Missing required property 'defaultBranch'");
|
|
71
|
+
}
|
|
72
|
+
if ((!args || args.teamOwnerId === undefined) && !opts.urn) {
|
|
73
|
+
throw new Error("Missing required property 'teamOwnerId'");
|
|
74
|
+
}
|
|
75
|
+
resourceInputs["defaultBranch"] = args ? args.defaultBranch : undefined;
|
|
76
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
77
|
+
resourceInputs["teamOwnerId"] = args ? args.teamOwnerId : undefined;
|
|
78
|
+
resourceInputs["apiToken"] = undefined /*out*/;
|
|
79
|
+
resourceInputs["slug"] = undefined /*out*/;
|
|
80
|
+
resourceInputs["uuid"] = undefined /*out*/;
|
|
81
|
+
}
|
|
82
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
83
|
+
const secretOpts = { additionalSecretOutputs: ["apiToken"] };
|
|
84
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
85
|
+
super(TestSuite.__pulumiType, name, resourceInputs, opts);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
exports.TestSuite = TestSuite;
|
|
89
|
+
/** @internal */
|
|
90
|
+
TestSuite.__pulumiType = 'buildkite:TestSuite/testSuite:TestSuite';
|
|
91
|
+
//# sourceMappingURL=testSuite.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testSuite.js","sourceRoot":"","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AG,EAAE,uBAAuB,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;QAC7D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;;AA3FL,8BA4FC;AA9EG,gBAAgB;AACO,sBAAY,GAAG,yCAAyC,CAAC"}
|
package/types/input.d.ts
CHANGED
|
@@ -80,13 +80,12 @@ export declare namespace Pipeline {
|
|
|
80
80
|
triggerMode?: pulumi.Input<string>;
|
|
81
81
|
}
|
|
82
82
|
interface PipelineTeam {
|
|
83
|
-
/**
|
|
84
|
-
* The level of access to grant. Must be one of `READ_ONLY`, `BUILD_AND_READ` or `MANAGE_BUILD_AND_READ`.
|
|
85
|
-
*/
|
|
86
83
|
accessLevel: pulumi.Input<string>;
|
|
84
|
+
pipelineTeamId?: pulumi.Input<string>;
|
|
87
85
|
/**
|
|
88
|
-
* The
|
|
86
|
+
* The slug of the created pipeline.
|
|
89
87
|
*/
|
|
90
88
|
slug: pulumi.Input<string>;
|
|
89
|
+
teamId?: pulumi.Input<string>;
|
|
91
90
|
}
|
|
92
91
|
}
|
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
|
*/
|
|
@@ -68,24 +68,23 @@ export declare namespace Pipeline {
|
|
|
68
68
|
/**
|
|
69
69
|
* Whether to skip creating a new build if an existing build for the commit and branch already exists.
|
|
70
70
|
*/
|
|
71
|
-
skipBuildsForExistingCommits
|
|
71
|
+
skipBuildsForExistingCommits: boolean;
|
|
72
72
|
/**
|
|
73
73
|
* Whether to skip creating a new build for a pull request if an existing build for the commit and branch already exists.
|
|
74
74
|
*/
|
|
75
|
-
skipPullRequestBuildsForExistingCommits
|
|
75
|
+
skipPullRequestBuildsForExistingCommits: boolean;
|
|
76
76
|
/**
|
|
77
77
|
* What type of event to trigger builds on. Must be one of:
|
|
78
78
|
*/
|
|
79
79
|
triggerMode: string;
|
|
80
80
|
}
|
|
81
81
|
interface PipelineTeam {
|
|
82
|
-
/**
|
|
83
|
-
* The level of access to grant. Must be one of `READ_ONLY`, `BUILD_AND_READ` or `MANAGE_BUILD_AND_READ`.
|
|
84
|
-
*/
|
|
85
82
|
accessLevel: string;
|
|
83
|
+
pipelineTeamId: string;
|
|
86
84
|
/**
|
|
87
|
-
* The
|
|
85
|
+
* The slug of the created pipeline.
|
|
88
86
|
*/
|
|
89
87
|
slug: string;
|
|
88
|
+
teamId: string;
|
|
90
89
|
}
|
|
91
90
|
}
|