Create
cancel
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

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

site/
server/bitbucket-pipeline.yml

 

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
TAGS
Community showcase
Posted in Trello

Taco Tuesday: Your favorite Trello blog takeaway

Hello friends! From the community that brought you Welcome Wednesday, Throwback Thursday and Friday Fun, welcome to Taco Tuesday, a weekly discussion about all things Trello. The best part? One Tac...

89 views 7 6
Join discussion

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