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