1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
I did those steps :
1 - Sign in to the AWS Management Console and open the CodePipeline console at http://console.aws.amazon.com/codesuite/codepipeline/home.
2 - Choose the pipeline => choose Edit. On the stage that contains your CodeBuild action, choose Edit stage.
3- Choose the icon to edit your CodeBuild action.
4 - On the Edit action page, under Environment variables, enter the following:
-
In Name, enter a name for your environment variable.
-
In Value, enter the variable syntax for your pipeline output variable: #{SourceVariables.BranchName}.
-
In Type, choose Plaintext.
then in code buildSpec you access the resolved value like $VAR_NAME
답변함 2년 전
관련 콘텐츠
- AWS 공식업데이트됨 2년 전
I added in code Build => environment variables section an env var :
BRANCH_NAME, #{SourceVariables.BranchName}, plaintext
when I read it in code build I have an output string equals to "#{SourceVariables.BranchName}" instead of "main"