Source: AWS You can now set environment variables for CodeBuild build jobs in your pipeline. Previously, build jobs in your pipeline could only use environment variables defined in the build project configuration or buildspec file. When building for different environments and stages, you can now set environment variables directly through CodePipeline. You can now reuse the same build project for multiple actions and simplify deployments to staging and production environments in your pipeline. You can also view the environment variables used for your build in the pipeline execution history alongside all other action configuration details.