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
synth_codebuild_step = pipelines.CodeBuildStep(...) | |
codepipeline = pipelines.CodePipeline( | |
self, | |
"CodePipeline", | |
synth=synth_codebuild_step, | |
) | |
# That should be called at the end of the pipeline definition, because the pipeline can't be changed afterwards | |
codepipeline.build_pipeline() | |
synth_cfn_project: codebuild.CfnProject = codepipeline.synth_project.node.default_child | |
synth_cfn_project.cache = codebuild.CfnProject.ProjectCacheProperty(type="LOCAL", modes=["LOCAL_SOURCE_CACHE"]) |