Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

BITBUCKET_TAG is always equals to "develop"

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 Oct 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
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

224 views 2 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you