-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BREAKING] Usability improvements for the CodeBuild Construct library. (
#412) 1. Rename 'BuildProject' to 'Project'. 2. Allow setting the physical name of a Project, to make it consistent with other L2s. 3. Introduce a BuildImage class that makes it more convenient to specify the used Docker image. 4. Introduce a convenience PipelineProject class for use in CodePipeline that defaults the source and artifacts fields.
- Loading branch information
Showing
17 changed files
with
309 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export * from './pipeline-actions'; | ||
export * from './pipeline-project'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
packages/@aws-cdk/aws-codebuild-codepipeline/lib/pipeline-project.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import codebuild = require('@aws-cdk/aws-codebuild'); | ||
import cdk = require('@aws-cdk/cdk'); | ||
|
||
// tslint:disable-next-line:no-empty-interface | ||
export interface PipelineProjectProps extends codebuild.CommonProjectProps { | ||
} | ||
|
||
/** | ||
* A convenience class for CodeBuild Projects that are used in CodePipeline. | ||
*/ | ||
export class PipelineProject extends codebuild.Project { | ||
constructor(parent: cdk.Construct, id: string, props?: PipelineProjectProps) { | ||
super(parent, id, { | ||
source: new codebuild.CodePipelineSource(), | ||
artifacts: new codebuild.CodePipelineBuildArtifacts(), | ||
...props | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.