Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

pipeline variable

Joan Arbelaez September 7, 2022

adding my default variable "BITBUCKET_TAG" to my "aws-ecr-push-image:1.6.0" I did it this way but it doesn't work

AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION
IMAGE_NAME: my-docker-image
TAGS: '${BITBUCKET_TAG}'

 

any suggestion?

1 answer

1 accepted

0 votes
Answer accepted
Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 9, 2022

@Joan Arbelaez  hi. Thanks for your question.

Please provide us more details with your pipeline config and response to understand what is going wrong.

Also take a look at the description of the BITBUCKET_TAG variable:

"The tag of a commit that kicked off the build. This value is only available on tags.

Not available for builds against branches."


Regards, Igor.

Joan Arbelaez September 9, 2022

adding my default variable "BITBUCKET_TAG" to my "aws-ecr-push-image:1.6.0" I did it this way but it doesn't work, it returns empty value " "

AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION
IMAGE_NAME: my-docker-image
TAGS: '${BITBUCKET_TAG}'

Joan Arbelaez September 9, 2022

Patrick I am effectively calling the variable from a branch, so I am going to do it directly from the label to obtain the corresponding value as you indicate, thanks for your answer

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events