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 'https://abc.atlassian.net/svn/XXX/trunk'

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
Community showcase
Published yesterday in Jira Ops

Jira Ops Early Access Program Update #1: Announcing our next feature and a new integration

Thanks for signing up for Jira Ops! I’m Matt Ryall, leader for the Jira Ops product team at Atlassian. Since this is a brand new product, we’ll be delivering improvements quickly and sharing updates...

174 views 0 5
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