Forums

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

How to create branch specific pipeline; add bitbucket-pipelines.yml to branch and what else?

yogesh_devi
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 25, 2025 edited

Hello,

I am new to bitbucket pipelines and planning to migrate from on-prem bamboo to bitbucket pipelines.   We run our builds in a different ways for different  branches out of a single repository.   So If I have many distinct branches such as  "branch4-release-X", "branch4-release-Y" that branch out of main but have divergant  code base. Each need  to be build in a separate way. 

I understand that if I need to run a pipeline differently for a given branch (or a set of branches that match a wildcard pattern) then I need to provide a separate file "bitbucket-pipelines.yml" and check it in that specific branch .   So I created a file called "bitbucket-pipelines.yml" and checked it in my branch called "branch4-release-X".   Hereafter when I navigate to my repository and click on "pipelines" in left pane  and click on "Run pipeline" then I get a dialogue " Run Pipeline for 'branch4-release-X' " with two drop-downs , one each for "branch" and "pipeline" . The branch dropdown already sh has " branch4-release-X" selected - however the  dropdown for pipeline says "no pipelines found"

What should I do apart from adding a branch specific "bitbucket-pipelines.yml"  to ensure that the branch specific pipeline shows up when I select my branch and so I am able to run it

if  apart from using the web console if there another way to trigger a pipeline assiciated with a specific branch  then please tell me about that as well  

 

 

 

 

 

 

1 answer

1 accepted

0 votes
Answer accepted
yogesh_devi
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 25, 2025 edited

Ooops my bad - I had a typo in the extension in name of bitbucket-pipelines.yml - I named my file "bitbucket-pipelines.yaml" :-( 

This typo killed my couple hours

 but all is well that ends well .

So as far as you create a file"bitbucket-pipelines.yml" in your branch and check it in ,  then that creates the pipeline for that branch (with steps as defined in your "bitbucket-pipelines.yml") and you can trigger the pipeline from web console   - no sweat .

I am  yet to try based on code commits on branches mathcing the pattern - but that is another story 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
atlassian, forge, forge learning path, atlassian learning, cloud app development, forge app development, build forge apps, atlassian certification, developer training, jira app development, confluence app development, automation, ui frameworks

Turn Ideas into Atlassian Apps 📱

From setup to deployment—this learning path shows you how to build your first app using Forge. Learn the essentials, streamline workflows, and bring custom solutions to life across Jira, Confluence, and more.

Start Learning
AUG Leaders

Atlassian Community Events