bamboo remote agent doing a clean directory and fresh checkout when it should not be

We have bamboo 4.2.1 and using SVN as a repository. On our remote agents, whenever I execute a plan, bamboo is running a 'clean directory' operation. The plan and checkout task are NOT set force a clean checkout (ie - the checkbox to force a clean build is UNchecked and we are not doing an export). It should be running an update. On a local agent, we are not seeing this behavior, as it performs an update rather than a clean checkout, which is what we want. Why is the remote agent forcing a clean checkout and what can I do to make it do the update instead? This is absolutely a critical problem that needs to be resolved or we will not be able to use bamboo.

1 answer

Look carefully at the log file to see if it is forcing a clean because the repository configuration is changed. For example if you build from a different branch that will cause the clean to be forced even though the "contents" of the workspace are more or less the same (same filenames and structure as occur in branches). Apologies if this does not apply.

There were no changes to the configuration nor the repository. The plan was run initially and performed the checkout. Then, without any changes, it was run again. The plan is set up to do an update, not a clean build, but from the log snippet, it is running a clean directory

03-Sep-2013 11:37:21 Build BLDPRCSSBX-T5-CHECKOUT2-56 started building on agent BambooAgent2.ARGO.LOCAL
03-Sep-2013 11:37:21 Build working directory is C:\Atlassian\bamboo-agent-home-2\xml-data\build-dir\BLDPRCSSBX-T5-CHECKOUT2
03-Sep-2013 11:37:21 Cleaning directory C:\Atlassian\bamboo-agent-home-2\xml-data\build-dir\BLDPRCSSBX-T5-CHECKOUT2\Configuration
03-Sep-2013 11:37:28 Cleaning directory C:\Atlassian\bamboo-agent-home-2\xml-data\build-dir\BLDPRCSSBX-T5-CHECKOUT2\ADS
03-Sep-2013 11:54:17 Executing build BLDPRCSSBX-T5-CHECKOUT2-56
03-Sep-2013 11:54:17 Starting task 'Checkout ADS' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'
03-Sep-2013 11:54:17 Running preRetrieveSourceCode task...
03-Sep-2013 11:54:17 Updating source code to revision: 45642
03-Sep-2013 11:54:17 Working directory 'C:\Atlassian\bamboo-agent-home-2\xml-data\build-dir\BLDPRCSSBX-T5-CHECKOUT2\ADS' is empty. Checking out SVN URL 'svn://svnsrv1/Products/Apps/BuildProcessSandbox/trunk/ADS'
03-Sep-2013 13:26:17 Updated source code to revision: 45642

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,791 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