Change plan build directory

I have a customised EC2 image based on the Atlassian stock windows image. I've added an EBS volume mounted as drive V:. Then checked out our svn repo to V:\svn.

I'm hoping to configure the Bamboo plan to use this directory to check out the repo, to save it being checked out in full each time.

Any ideas where I can configure this? I'm guessing I need to change the build-dir.

I currently see this in the log;

Working directory 'C:\build-dir\XXX-PLAN-JOB1' is empty. Checking out SVN URL ''

So I need to configure the working directory?

1 answer

1 accepted

It will. The section about agents does apply to OnDemand because you're in control of the EC2 instance.

At the top of that article it says;

The information on this page does not apply to Bamboo OnDemand.

Are you saying this will work with OnDemand?

That's right, it will go to XXX-PLAN-JOB. You can't change it unless you manage your checkout on your own (by adding script tasks).

Ok got you.

So I can change the <buildworkingdirectory> to V:\svn by modifying bamboo-agent.cfg.xml

But presumably the svn checkout will now go to V:\svn\XXX-PLAN-JOB1?

How do I make it checkout to V:\svn regardless of the plan and job?

I tried changing bamboo-agent.cfg.xml to point to my desired working directory. But each time I rebooted my instance it would revert back. I found that making the change in bamboo-agent.cfg.template.xml has the desired effect.

Again, no mention of this in the documentation that I can see.

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 May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

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