Can I specify a different directory than the working directory when cloning a repository in Bamboo?

I have several projects which use a set of precompiled libraries. Our directory structure has this libraries folder at the same location as the base working directory of Bamboo. The libraries are also under version control and we are trying to figure out a way to have bamboo pull them to a directory that is not the working directory of the project being built.

C:\projects\Libraries

C:\projects\bamboo_plan_checkouts

edit: We are using mercurial

1 answer

1 accepted

Since Bamboo 3.3 you can have your Source Checkout as a Task. You can have as many Tasks in any Job as you want. Tasks execute in sequence, inside the Job. Each Job runs on the same agent, inside the same build working directory.

* Task 1, Checkout the Libraries to subdir .\Libraries

* Task 2, Checkout Project A to subdir .\Project A

* Task 3, Build Project A using path references to .\Libraries that refer to the build.working.directory

A better solution, though, may be to look into Mercurial Nested repositories: http://mercurial.selenic.com/wiki/Subrepository?action=show&redirect=subrepos

I'm assuming developers will need to know which bits to checkout too and you don't want your CI builds building one way and your local Dev builds building a totally different way.

For how to reference a given build's working directory during the build, see: http://confluence.atlassian.com/display/BAMBOO/Using+Global%2C+Plan+or+Build-specific+Variables

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Marketplace Apps

Tips on how to choose the best estimation method for your planning

Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...

64 views 0 11
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you