-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[cdk-pipelines] ShellScriptAction: add option to configure build image (and other environment settings) #10919
Comments
As a workaround, you can create a CodeBuild project directly and add it to the pipeline, rather than having one created for you. This gives you more flexibility. |
I will try to implement this in the coming days. |
The codebuild image of the ShellScriptAction was hardcoded. Some validation scripts require a different codebuild image. This commit adds a property to the ShellScriptAction class to specify the image, which defaults to linux_4_0 (the current hardcoded value). fixes aws#10919
…nvironment The build environment for the ShellScriptAction is hardcoded and set to LINUX_4_0. This fix allows the build environment to be specified in the ShellScriptAction fixes aws#10919
…environment The build environment for the ShellScriptAction is hardcoded and set to LINUX_4_0. This fix allows the build environment to be specified in the ShellScriptAction fixes aws#10919
The build environment for the ShellScriptAction is hardcoded and set to LINUX_4_0. This fix allows the build environment to be specified in the ShellScriptAction fixes #10919 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
Hey guys, great work on CDK!
Looks like I found a bug/bottleneck/critical-feature in the Pipeline construct. Namely, you can't set the environment for certain steps like the
ShellScriptAction
. In my case, I'm using Node 14 and I get errors like:In the synth actions, it allows me to set the image, just not in further steps.
A quick scan of the codebase suggests the problem is here:
aws-cdk/packages/@aws-cdk/pipelines/lib/validation/shell-script-action.ts
Line 180 in 36fea28
Reproduction Steps
package.json
Node engine to14
ShellScriptAction
during pipeline processWhat did you expect to happen?
Would allow me to set the build environment.
What actually happened?
The environment is hard-coded.
The text was updated successfully, but these errors were encountered: