You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do not set any environment variable with a name that begins with CODEBUILD_. This prefix is reserved for internal use.
So for (nearly) the past 2 years, this has been a documented-yet-unenforced point, so when CodeBuild is triggered by CodePipeline (and the resulting git data is lost) all I need to do was set CODEBUILD_GIT_BRANCH as an environment variable in the pipeline, and this script continued to work (rather nicely, too).
Due to recent changes in CodePipeline (literally, within the past few days, last build that executed cleanly was June 30th), that custom environment variable "fix" now errors with:
No user environment variables can start with CODEBUILD_
It may be worth changing the prefix now? CODEBUILDEXTRAS_ seems logical enough?
The Build Specification Reference for AWS CodeBuild states:
Choose a different prefix for the added env variables?
The text was updated successfully, but these errors were encountered: