Forums

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

Setting up a bitbucket pipeline by committing and pushing bitbucket-pipelines.yml on a feature branc

Shivang Kumar
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!
September 20, 2023

I have pushed bitbucket-pipelines.yml on a feature branch of a bitbucket repo.

The contents on the yml file seems syntactly correct.

Still, I am not able to find the pipelines on the bitbucket UI.

On the pipeline section, I am still getting a message to setup a pipeline. 

My understanding was that if we push a valid bitbucket-pipelines.yml on the root path of any repo, pipelines would start showing up. In my case, I just want to run a custom pipeline step on the feature branch only for now.

By the way, pipelines are enabled.

What i am missing here?

1 answer

1 accepted

1 vote
Answer accepted
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 21, 2023

Hello @Shivang Kumar and welcome to the Community! 

For Bitbucket to identify that pipelines were enabled and that a valid yml file was already pushed, you will need to add the YML file to the main branch of your repository (usually master branch).

So if you haven't already, try pushing the YML file to the main branch as well, and the pipelines page should correctly identify it.

Once that is done, you can trigger the custom pipeline from your feature branch by navigating to Pipelines page and clicking on the  Run Pipelines button in the top right corner.

Hope that helps! Let me know in case you have any questions.

Thank you, @Shivang Kumar !

Patrik S

Shivang Kumar
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!
September 22, 2023

Thank you @Patrik S

This solution worked. Actually, I was not ready to push the same pipeline code, which is under development in the feature branch, to the main branch. 

As a work around, I just pushed a dummy pipeline yml which practically does nothing.

After this, I was able to run my own custom pipeline from the feature branch.

Thanks again!!

Like Patrik S likes this

Suggest an answer

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

Atlassian Community Events