Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Change location of bitbucket-pipelines.yml file


Is it possible to put my bitbucket-pipelines.yml file in a child directory and not root?

My repo is structured into two directories:

site/ # website front end & api logic
server/ # server deploy & provisioning logic

 and I desire having the pipelines config in the server directory



1 answer

1 accepted

0 votes
Answer accepted

In general this is not possible. The options to make it possible I can think of are likely not what you've looking for:


  1. Make server a gitlink/subproject. then it would be a repository of its own which would have its bitbucket-pipeline in its own root directory and build in its own repository.
  2. Use a third party utility/service that is able to run the file from anywhere.

Perhaps if you share what is driving your motivation better directions or ideas can be given. 

Thanks @ktomk kinda figured as much.

Just wanted a cleaner looking file structure - have all my deploy related files in the server directory. I can live with the config file in the root.

Like ktomk likes this

Yes, you normally only need that one file in the root. And yes, I know what you're talking about. It can get kinda crowd in the root project directory these days. I try to minimize that as well, like putting what can in support sub-directories. Works well with bitbucket-pipelines.yml for my needs.

Agreed! It's the only file in my root, and it hurts my eyeballs. Until I remind myself my client paid for it to be there and then I'm happy again.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

79 views 2 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you