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

BITBUCKET_TAG is always equals to "develop"

Jonathan B October 15, 2021

Hello, 

 

I have the following pipeline my repo: 

tags:

  '*.*.*':

    - step:

       script:

         - make push_stable

 

Then the Makefile which is used:

ifeq ("$(CI)", "true")
VERSION=$(BITBUCKET_TAG)
endif

push_stable:
echo $(BITBUCKET_TAG)
...

 

When I go on a specific commit (does not matter on what branch I am ) and tag it (with UI), the pipeline will correctly trigger. But the value displayed for BITBUCKET_TAG is always equal to "develop".

 

I saw this post but, to be honest, i do not quite understand the conclusion. 
Am I supposed to use the BITBUCKET_TAG as part of pipeline script ?

 

1 answer

0 votes
Caroline R
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 20, 2021

Hi, @Jonathan B! Welcome to the community! 

Could you please check the value of $BITBUCKET_TAG directly in the YML file instead of printing from the Makefile? That will help us to take out the makefile related issues outside.

You can use the following YML:

tags:
  '*.*.*':
    - step:
       script: 
         - echo $BITBUCKET_TAG

Thank you. Please, feel free to share any additional information regarding this case.

Kind regards,
Caroline 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events