Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

tag push not triggering my pipeline

RogerJParkinson May 28, 2019

I've seen other questions on here like this but reading them hasn't solved my problem. I'm creating a tag and pushing it. The tag then shows up in bitbucket when I look at the tags on the repo. So we know it got there. But nothing triggered my pipeline. Normal commits do trigger the default just fine. Here's my pipeline:

...
pipelines:
default:
- step:
name: Build and Test
caches:
- maven
- docker
script:
- echo $BITBUCKET_COMMIT
 - mvn -B clean package
...

tags:
'test-*':
- step:
name: Build and deploy to test env
caches:
- maven
script:
- echo $BITBUCKET_COMMIT
- mvn -B clean package
...

I've tried specifying the tag with and without quotes because I've seen examples of both. Doesn't change behaviour. Here's my push sequence:

git tag -a test-005 -m "test tags"
git push --tags

Counting objects: 1, done.
Writing objects: 100% (1/1), 185 bytes | 185.00 KiB/s, done.
Total 1 (delta 0), reused 0 (delta 0)
To https://bitbucket.org/methodmaker/snakecharmer.git
* [new tag] test-005 -> test-005

 

1 answer

1 accepted

0 votes
Answer accepted
RogerJParkinson May 28, 2019

The answer hit me just after I posted this. My problem was that I had two 'tags' entries, ie a second one after the one shown. It looked like:

tags:  test-*:...tags:
  release-*:
...

when it should have looked like:

tags:
  test-*:
...
  release-*:
...

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events