1 Answer
- Newest
- Most votes
- Most comments
0
Hi CoryMcC,
Using a dynamic name for the buildspec.yml is not currently supported when using CodeBuild with CodePipeline, but filed this as a feature request.
However, CodePipeline does support passing environment variables to CodeBuild. If it is possible to model your build commands in a separate shell script, you could pass the path/name of the shell script in an environment variable, and then run a different script based on that variable.
You may additionally pass environment variables for other portions of the buildspec.yml, for example, the artifacts->paths specification supports environment variable expansion as well.
answered 4 years ago
Relevant content
- asked 21 days ago
- Accepted Answerasked 2 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago