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 ?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.