Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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

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.
Sep 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

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