@flit/cdk-pipeline 1.2.0 → 1.2.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/.jsii +72 -59
- package/dist/artifact.js +1 -1
- package/dist/code-commit-source-segment.js +4 -4
- package/dist/code-star-source-segment.d.ts +18 -0
- package/dist/code-star-source-segment.js +4 -4
- package/dist/git-hub-source-segment.d.ts +12 -0
- package/dist/git-hub-source-segment.js +4 -4
- package/dist/pipeline-segment.d.ts +1 -1
- package/dist/pipeline-segment.js +3 -3
- package/dist/pipeline.d.ts +2 -2
- package/dist/pipeline.js +2 -2
- package/dist/publish-assets-action.js +1 -1
- package/dist/s3-source-segment.js +4 -4
- package/dist/segment.js +2 -2
- package/dist/source-segment.js +1 -1
- package/dist/stack-segment.d.ts +3 -3
- package/dist/stack-segment.js +3 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/code-commit-source-segment.ts +1 -1
- package/src/code-star-source-segment.ts +21 -1
- package/src/git-hub-source-segment.ts +15 -1
- package/src/pipeline-segment.ts +1 -1
- package/src/pipeline.ts +2 -2
- package/src/s3-source-segment.ts +1 -1
- package/src/stack-segment.ts +3 -3
package/package.json
CHANGED
|
@@ -32,7 +32,7 @@ export class CodeCommitSourceSegment extends SourceSegment {
|
|
|
32
32
|
this.props.repository.repositoryName,
|
|
33
33
|
{
|
|
34
34
|
...this.props,
|
|
35
|
-
actionName: this.props.repository.
|
|
35
|
+
actionName: `${this.props.repository}/${this.props.branch || "master"}`,
|
|
36
36
|
},
|
|
37
37
|
);
|
|
38
38
|
}
|
|
@@ -7,9 +7,27 @@ import { SegmentConstructed } from "./segment";
|
|
|
7
7
|
import { SourceSegment, SourceSegmentProps } from "./source-segment";
|
|
8
8
|
|
|
9
9
|
export interface CodeStarSourceSegmentProps extends SourceSegmentProps {
|
|
10
|
+
/**
|
|
11
|
+
* The owning user or organization of the repository.
|
|
12
|
+
* @example `"aws"`
|
|
13
|
+
*/
|
|
10
14
|
readonly owner: string;
|
|
15
|
+
/**
|
|
16
|
+
* The ARN of the CodeStar Connection created in the AWS console
|
|
17
|
+
* that has permissions to access this GitHub or BitBucket repository.
|
|
18
|
+
* @example `"arn:aws:codestar-connections:us-east-1:123456789012:connection/12345678-abcd-12ab-34cdef5678gh"`
|
|
19
|
+
* @see https://docs.aws.amazon.com/codepipeline/latest/userguide/connections-create.html
|
|
20
|
+
*/
|
|
11
21
|
readonly connectionArn: string;
|
|
22
|
+
/**
|
|
23
|
+
* The name of the repository.
|
|
24
|
+
* @example `"aws-cdk"`
|
|
25
|
+
*/
|
|
12
26
|
readonly repository: string;
|
|
27
|
+
/**
|
|
28
|
+
* The branch to build.
|
|
29
|
+
* @default `"master"`
|
|
30
|
+
*/
|
|
13
31
|
readonly branch?: string;
|
|
14
32
|
readonly triggerOnPush?: boolean;
|
|
15
33
|
readonly variablesNamespace?: string;
|
|
@@ -27,7 +45,9 @@ export class CodeStarSourceSegment extends SourceSegment {
|
|
|
27
45
|
construct(scope: Pipeline): SegmentConstructed {
|
|
28
46
|
return new CodeStarSourceSegmentConstructed(scope, this.props.repository, {
|
|
29
47
|
...this.props,
|
|
30
|
-
actionName: this.props.repository
|
|
48
|
+
actionName: `${this.props.owner}/${this.props.repository}/${
|
|
49
|
+
this.props.branch || "master"
|
|
50
|
+
}`,
|
|
31
51
|
repo: this.props.repository,
|
|
32
52
|
});
|
|
33
53
|
}
|
|
@@ -12,8 +12,20 @@ import { SourceSegment, SourceSegmentProps } from "./source-segment";
|
|
|
12
12
|
|
|
13
13
|
export interface GitHubSourceSegmentProps extends SourceSegmentProps {
|
|
14
14
|
readonly oauthToken: SecretValue;
|
|
15
|
+
/**
|
|
16
|
+
* The owning user or organization of the repository.
|
|
17
|
+
* @example `"aws"`
|
|
18
|
+
*/
|
|
15
19
|
readonly owner: string;
|
|
20
|
+
/**
|
|
21
|
+
* The name of the repository.
|
|
22
|
+
* @example `"aws-cdk"`
|
|
23
|
+
*/
|
|
16
24
|
readonly repository: string;
|
|
25
|
+
/**
|
|
26
|
+
* The branch to build.
|
|
27
|
+
* @default `"master"`
|
|
28
|
+
*/
|
|
17
29
|
readonly branch?: string;
|
|
18
30
|
readonly trigger?: GitHubTrigger;
|
|
19
31
|
readonly variablesNamespace?: string;
|
|
@@ -31,7 +43,9 @@ export class GitHubSourceSegment extends SourceSegment {
|
|
|
31
43
|
construct(scope: Pipeline): SegmentConstructed {
|
|
32
44
|
return new GitHubSourceSegmentConstructed(scope, this.props.repository, {
|
|
33
45
|
...this.props,
|
|
34
|
-
actionName: this.props.repository
|
|
46
|
+
actionName: `${this.props.owner}/${this.props.repository}/${
|
|
47
|
+
this.props.branch || "master"
|
|
48
|
+
}`,
|
|
35
49
|
repo: this.props.repository,
|
|
36
50
|
});
|
|
37
51
|
}
|
package/src/pipeline-segment.ts
CHANGED
|
@@ -36,7 +36,7 @@ export interface PipelineSegmentProps {
|
|
|
36
36
|
readonly environmentVariables?: { [key: string]: BuildEnvironmentVariable };
|
|
37
37
|
/**
|
|
38
38
|
* The name of the stack to apply this action to.
|
|
39
|
-
* @
|
|
39
|
+
* @default The name of the given stack.
|
|
40
40
|
*/
|
|
41
41
|
readonly stackName?: string;
|
|
42
42
|
/**
|
package/src/pipeline.ts
CHANGED
|
@@ -14,13 +14,13 @@ import { isPipeline } from "./pipeline-segment";
|
|
|
14
14
|
export interface PipelineProps extends StackProps {
|
|
15
15
|
/**
|
|
16
16
|
* The name of the generated pipeline.
|
|
17
|
-
* @
|
|
17
|
+
* @default Stack ID
|
|
18
18
|
*/
|
|
19
19
|
readonly pipelineName?: string;
|
|
20
20
|
/**
|
|
21
21
|
* The path to the cdk projects root directory containing the cdk.json file
|
|
22
22
|
* relative to the asset root
|
|
23
|
-
* @
|
|
23
|
+
* @default `"."`
|
|
24
24
|
*/
|
|
25
25
|
readonly rootDir?: string;
|
|
26
26
|
/**
|
package/src/s3-source-segment.ts
CHANGED
|
@@ -31,7 +31,7 @@ export class S3SourceSegment extends SourceSegment {
|
|
|
31
31
|
construct(scope: Pipeline): SegmentConstructed {
|
|
32
32
|
return new S3SourceSegmentConstructed(scope, this.props.bucket.bucketName, {
|
|
33
33
|
...this.props,
|
|
34
|
-
actionName: this.props.bucket.
|
|
34
|
+
actionName: `${this.props.bucket}/${this.props.bucketKey}`,
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
}
|
package/src/stack-segment.ts
CHANGED
|
@@ -45,7 +45,7 @@ export interface StackSegmentProps {
|
|
|
45
45
|
readonly environmentVariables?: { [key: string]: BuildEnvironmentVariable };
|
|
46
46
|
/**
|
|
47
47
|
* The name of the stack to deploy the changes to.
|
|
48
|
-
* @
|
|
48
|
+
* @default The name of the given stack.
|
|
49
49
|
*/
|
|
50
50
|
readonly stackName?: string;
|
|
51
51
|
/**
|
|
@@ -54,12 +54,12 @@ export interface StackSegmentProps {
|
|
|
54
54
|
readonly output?: Artifact;
|
|
55
55
|
/**
|
|
56
56
|
* The filename for the file in the output artifact
|
|
57
|
-
* @
|
|
57
|
+
* @default `"artifact.json"`
|
|
58
58
|
*/
|
|
59
59
|
readonly outputFileName?: string;
|
|
60
60
|
/**
|
|
61
61
|
* Does this stage require manual approval of the change set?
|
|
62
|
-
* @
|
|
62
|
+
* @default `false`
|
|
63
63
|
*/
|
|
64
64
|
readonly manualApproval?: Boolean;
|
|
65
65
|
}
|