i am using a tag based release. When i want to release i tag the commit with release-${version} and push it. But doing so, causes two pipelines to run one for the push on master and another for the tag. is it possible to just run tag pipeline and not the push pipeline if the latest pushed commit has a tag.
Hi @Siddhant
Welcome to the community.
Unfortunately, it's not possible to stop a branch push trigger when there's a specific tag on a push.
As a workaround, you can add a script in the branch/default trigger that validates if a pushed commit has a specific tag.
Then return exit command to stop executing the build further.
pipelines: default: - step: name: Default trigger script: - # validate if there's a tag then return exit to stop executing the build further - #Some scripts here tags: release-*: - step: name: Release script: - #Some scripts here
Hope it helps and do let me know if you have further questions that I can help with.
Regards,
Mark C
Thanks for replying.
This will definitely save some of the build minutes...
Btw, Is there any chance of this kind of feature being added in near future?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Siddhant
We do have an existing feature request for it that can be located through this link. - https://jira.atlassian.com/browse/BCLOUD-20192
You can upvote and watch it for now so that you'll be notified of any updates from our team when the feature becomes available on Bitbucket Cloud. Please do note that we don't have an exact ETA for the feature request as all new features will be implemented according to our policy here.
Hope it helps and let me know if you have further questions.
Regards,
Mark C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.