Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bitbucket Pipelines - Trigger build on tag to master only

David Jackson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 28, 2024

I'd like to trigger a pipelines build when a tag is created on the master branch only. How would I do this?

1 answer

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 29, 2024

G'day @David Jackson !

Welcome to the Bitbucket Cloud community! :)

You would need to make use of the tags trigger condition, you can find more information in our documentation:

Basically, you would define this in a similar method to branches - for example:

pipelines: 
tags:
'master':
- step:
script:
- echo "Hello world!"
  

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events