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

Pipeline gets triggered on branch creation

safarnama
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!
April 2, 2023

Pipeline gets triggered on branch creation, But I don't want it, I want pipeline to get triggered only when there is a new commit on the branch. How can I achieve this?
Thanks

1 answer

0 votes
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 3, 2023

G'day @safarnama and welcome to the community!

By default, a new build will be triggered every time you make a commit on any branch or every time you create a new branch if you have the "pipeline: default" trigger in your YML file. 

To avoid triggering builds automatically when a new branch is created, please remove the "pipeline: default" trigger from your YML file. Instead, you can use branch triggers that run a build on every push to a specific branch or pull request triggers that run a build on pull requests.

You can refer to the Bitbucket Cloud documentation on how to configure Pipelines for various triggers. Here's the link: https://support.atlassian.com/bitbucket-cloud/docs/configure-bitbucket-pipelinesyml/.

Cheers,
Syahrul

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events