(pipelines): no way to set "synth" action environment variables #12061
Labels
@aws-cdk/pipelines
CDK Pipelines library
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p1
When using the standardYarnSynth (or npm) action in a CodePipeline it allows me to define environment variables in two places. One is as part of the standardYarnSynth props and the second is part of the environment property. This makes sense as the first should generate the environment variables in the CodePieline action and the second in the CodeBuild project.
But it doesn't matter where I define my variable it always ends as part of the Codebuild project. And this is a problem as some values (like exuction id) can't re resolved within a CodeBuild project but only within a CodePipeline action.
Reproduction Steps
What did you expect to happen?
I'd have expected to have "VERSION_IN" as part of the CodeBuild and "VERSION_OUT" as part of the CodePipeline action.
What actually happened?
The sample code above creates a CodeBuild action with two environment variables. But CodeBuild can't resolve these variables.
Environment
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: