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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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 Edited

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 Pipelines

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

1,323 views 0 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