(pipelines): allow builds to happen after UpdatePipeline #29863
Labels
@aws-cdk/core
Related to core CDK functionality
@aws-cdk/pipelines
CDK Pipelines library
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p2
Describe the feature
Ability to specify an additional build step after
synth
and afterself-update
and use this as a source for later Stages.Use Case
Pretty frustrating that I can't do this - I am creating a Stack, which I put into a Stage. This works, except that
cdk synth
in my Pipelinesynth
in order for the stack to pull Assets from the artifacts created by those taskscdk deploy
from my machine instead. and then when I push to my repo, it triggers another build again.The intuitive solution if you're new to CDK (like I am) is to add a
Wave
to the Pipeline, before adding the Stage.But the resulting Pipeline adds the "Assets" stage in between the UpdatePipeline stage and the Wave and there's no way to specify the Steps in the Wave as Outputs for the stack deployment Stage.
Proposed Solution
Allow us to specify a CodeBuildStep as a source for later Stacks I guess? 🤷♂️
Other Information
I've tried the following based on other topics along the same lines
pipeline.buildPipeline()
then accessing the underlying pipeline to add an additional CodeBuildAction after the "self-update" actioninput
Acknowledgements
CDK version used
2.133
Environment details (OS name and version, etc.)
os x
The text was updated successfully, but these errors were encountered: