@pulumiverse/buildkite 2.0.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/LICENSE +201 -0
- package/README.md +110 -0
- package/agent/agentToken.d.ts +94 -0
- package/agent/agentToken.js +77 -0
- package/agent/agentToken.js.map +1 -0
- package/agent/index.d.ts +3 -0
- package/agent/index.js +22 -0
- package/agent/index.js.map +1 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +21 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +16 -0
- package/config/vars.js +31 -0
- package/config/vars.js.map +1 -0
- package/getMeta.d.ts +15 -0
- package/getMeta.js +13 -0
- package/getMeta.js.map +1 -0
- package/index.d.ts +12 -0
- package/index.js +34 -0
- package/index.js.map +1 -0
- package/organization/getOrganization.d.ts +47 -0
- package/organization/getOrganization.js +32 -0
- package/organization/getOrganization.js.map +1 -0
- package/organization/index.d.ts +6 -0
- package/organization/index.js +25 -0
- package/organization/index.js.map +1 -0
- package/organization/settings.d.ts +76 -0
- package/organization/settings.js +77 -0
- package/organization/settings.js.map +1 -0
- package/package.json +29 -0
- package/package.json.bak +29 -0
- package/pipeline/getPipeline.d.ts +89 -0
- package/pipeline/getPipeline.js +57 -0
- package/pipeline/getPipeline.js.map +1 -0
- package/pipeline/index.d.ts +9 -0
- package/pipeline/index.js +30 -0
- package/pipeline/index.js.map +1 -0
- package/pipeline/pipeline.d.ts +363 -0
- package/pipeline/pipeline.js +186 -0
- package/pipeline/pipeline.js.map +1 -0
- package/pipeline/schedule.d.ts +166 -0
- package/pipeline/schedule.js +106 -0
- package/pipeline/schedule.js.map +1 -0
- package/provider.d.ts +59 -0
- package/provider.js +54 -0
- package/provider.js.map +1 -0
- package/scripts/install-pulumi-plugin.js +26 -0
- package/team/getTeam.d.ts +97 -0
- package/team/getTeam.js +57 -0
- package/team/getTeam.js.map +1 -0
- package/team/index.d.ts +9 -0
- package/team/index.js +30 -0
- package/team/index.js.map +1 -0
- package/team/member.d.ts +149 -0
- package/team/member.js +133 -0
- package/team/member.js.map +1 -0
- package/team/team.d.ts +146 -0
- package/team/team.js +94 -0
- package/team/team.js.map +1 -0
- package/types/index.d.ts +3 -0
- package/types/index.js +11 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +88 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +87 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/utilities.d.ts +4 -0
- package/utilities.js +69 -0
- package/utilities.js.map +1 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
export declare namespace Pipeline {
|
|
2
|
+
interface PipelineProviderSettings {
|
|
3
|
+
/**
|
|
4
|
+
* Whether to create builds when branches are pushed.
|
|
5
|
+
*/
|
|
6
|
+
buildBranches: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Whether to create builds for pull requests from third-party forks.
|
|
9
|
+
*/
|
|
10
|
+
buildPullRequestForks: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Whether to create builds for pull requests when labels are added or removed.
|
|
13
|
+
*/
|
|
14
|
+
buildPullRequestLabelsChanged: boolean;
|
|
15
|
+
buildPullRequestReadyForReview: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Whether to create builds for commits that are part of a Pull Request.
|
|
18
|
+
*/
|
|
19
|
+
buildPullRequests: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Whether to create builds when tags are pushed.
|
|
22
|
+
*
|
|
23
|
+
* Properties available for Bitbucket Cloud, GitHub, and GitHub Enterprise:
|
|
24
|
+
*/
|
|
25
|
+
buildTags: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* A boolean to enable automatically cancelling any running builds for a branch if the branch is deleted.
|
|
28
|
+
*
|
|
29
|
+
* Additional properties available for GitHub:
|
|
30
|
+
*/
|
|
31
|
+
cancelDeletedBranchBuilds: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* The condition to evaluate when deciding if a build should run. More details available in [the documentation](https://buildkite.com/docs/pipelines/conditionals#conditionals-in-pipelines)
|
|
34
|
+
*/
|
|
35
|
+
filterCondition: string;
|
|
36
|
+
/**
|
|
37
|
+
* [true/false] Whether to filter builds to only run when the condition in `filterCondition` is true
|
|
38
|
+
*/
|
|
39
|
+
filterEnabled: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Prefix branch names for third-party fork builds to ensure they don't trigger branch conditions. For example, the `master` branch from `some-user` will become `some-user:master`.
|
|
42
|
+
*/
|
|
43
|
+
prefixPullRequestForkBranchNames: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* The status to use for blocked builds. Pending can be used with [required status checks](https://help.github.com/en/articles/enabling-required-status-checks) to prevent merging pull requests with blocked builds.
|
|
46
|
+
*/
|
|
47
|
+
publishBlockedAsPending: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Whether to update the status of commits in Bitbucket or GitHub.
|
|
50
|
+
*/
|
|
51
|
+
publishCommitStatus: boolean;
|
|
52
|
+
/**
|
|
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
|
+
*/
|
|
55
|
+
publishCommitStatusPerStep: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* The branch filtering pattern. Only pull requests on branches matching this pattern will cause builds to be created.
|
|
58
|
+
*/
|
|
59
|
+
pullRequestBranchFilterConfiguration: string;
|
|
60
|
+
/**
|
|
61
|
+
* Whether to limit the creation of builds to specific branches or patterns.
|
|
62
|
+
*/
|
|
63
|
+
pullRequestBranchFilterEnabled: boolean;
|
|
64
|
+
/**
|
|
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
|
+
*/
|
|
67
|
+
separatePullRequestStatuses: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Whether to skip creating a new build for a pull request if an existing build for the commit and branch already exists.
|
|
70
|
+
*/
|
|
71
|
+
skipPullRequestBuildsForExistingCommits: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* What type of event to trigger builds on. Must be one of:
|
|
74
|
+
*/
|
|
75
|
+
triggerMode: string;
|
|
76
|
+
}
|
|
77
|
+
interface PipelineTeam {
|
|
78
|
+
/**
|
|
79
|
+
* The level of access to grant. Must be one of `READ_ONLY`, `BUILD_AND_READ` or `MANAGE_BUILD_AND_READ`.
|
|
80
|
+
*/
|
|
81
|
+
accessLevel: string;
|
|
82
|
+
/**
|
|
83
|
+
* The buildkite slug of the team.
|
|
84
|
+
*/
|
|
85
|
+
slug: string;
|
|
86
|
+
}
|
|
87
|
+
}
|
package/types/output.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
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
|
+
//# sourceMappingURL=output.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output.js","sourceRoot":"","sources":["../../types/output.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF"}
|
package/utilities.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function getEnv(...vars: string[]): string | undefined;
|
|
2
|
+
export declare function getEnvBoolean(...vars: string[]): boolean | undefined;
|
|
3
|
+
export declare function getEnvNumber(...vars: string[]): number | undefined;
|
|
4
|
+
export declare function getVersion(): string;
|
package/utilities.js
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
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.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
|
|
6
|
+
function getEnv(...vars) {
|
|
7
|
+
for (const v of vars) {
|
|
8
|
+
const value = process.env[v];
|
|
9
|
+
if (value) {
|
|
10
|
+
return value;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
return undefined;
|
|
14
|
+
}
|
|
15
|
+
exports.getEnv = getEnv;
|
|
16
|
+
function getEnvBoolean(...vars) {
|
|
17
|
+
const s = getEnv(...vars);
|
|
18
|
+
if (s !== undefined) {
|
|
19
|
+
// NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
|
|
20
|
+
// Terraform uses internally when parsing boolean values.
|
|
21
|
+
if (["1", "t", "T", "true", "TRUE", "True"].find(v => v === s) !== undefined) {
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
if (["0", "f", "F", "false", "FALSE", "False"].find(v => v === s) !== undefined) {
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
exports.getEnvBoolean = getEnvBoolean;
|
|
31
|
+
function getEnvNumber(...vars) {
|
|
32
|
+
const s = getEnv(...vars);
|
|
33
|
+
if (s !== undefined) {
|
|
34
|
+
const f = parseFloat(s);
|
|
35
|
+
if (!isNaN(f)) {
|
|
36
|
+
return f;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
exports.getEnvNumber = getEnvNumber;
|
|
42
|
+
function getVersion() {
|
|
43
|
+
let version = require('./package.json').version;
|
|
44
|
+
// Node allows for the version to be prefixed by a "v", while semver doesn't.
|
|
45
|
+
// If there is a v, strip it off.
|
|
46
|
+
if (version.indexOf('v') === 0) {
|
|
47
|
+
version = version.slice(1);
|
|
48
|
+
}
|
|
49
|
+
return version;
|
|
50
|
+
}
|
|
51
|
+
exports.getVersion = getVersion;
|
|
52
|
+
/** @internal */
|
|
53
|
+
function resourceOptsDefaults() {
|
|
54
|
+
return { version: getVersion(), pluginDownloadURL: "github://api.github.com/pulumiverse/pulumi-buildkite" };
|
|
55
|
+
}
|
|
56
|
+
exports.resourceOptsDefaults = resourceOptsDefaults;
|
|
57
|
+
/** @internal */
|
|
58
|
+
function lazyLoad(exports, props, loadModule) {
|
|
59
|
+
for (let property of props) {
|
|
60
|
+
Object.defineProperty(exports, property, {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () {
|
|
63
|
+
return loadModule()[property];
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
exports.lazyLoad = lazyLoad;
|
|
69
|
+
//# sourceMappingURL=utilities.js.map
|
package/utilities.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAGjF,SAAgB,MAAM,CAAC,GAAG,IAAc;IACpC,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE;QAClB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC7B,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC;SAChB;KACJ;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AARD,wBAQC;AAED,SAAgB,aAAa,CAAC,GAAG,IAAc;IAC3C,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC;IAC1B,IAAI,CAAC,KAAK,SAAS,EAAE;QACjB,uGAAuG;QACvG,yDAAyD;QACzD,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,SAAS,EAAE;YAC1E,OAAO,IAAI,CAAC;SACf;QACD,IAAI,CAAC,GAAG,EAAE,GA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