Reputation: 2050
I'm trying to setup a pipeline through the AWS web console. The whole thing runs smoothly, but I have a problem with the varaibles outputted by CodeCommit that should be available to the following actions.
In the CodeCommit action configuration, the Variables namespace is set to SourceVariables
.
In the CodeBuild action configuration, I defined a BRANCH
environment variable supposed to map BranchName
of the SourceVariables
namespace, which should be outputted by the CodeCommit action based on this variable reference.
The BRANCH
substitution works in CodeBuild... and yet.
This is hardly what I expected.
What am I missing in order to CodePipeline to value this environment variable from CodeCommit as expected?
Upvotes: 3
Views: 1030
Reputation: 36
The image you provided is from the CodeBuild configuration page, but you need to set your environment variable in the CodePipeline Action configuration page.
Upvotes: 2
Reputation: 56
If you're using the value of that variables in the S3Deploy action, have you tried using env/exported-variables in your buildspec.yml file?
More information available here
Upvotes: 0