Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,362,619
Community Members
 
Community Events
168
Community Groups

pipeline variable

Edited

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

@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.

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}'

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

Atlassian Community Events