Run svn cleanup automatically after checkout


I want to make sure that the svn clean-up is run after the check-out is performed in Bamboo.

Most often the Bamboo build fails and in the logs it shows run 'svn cleanup' first . So I need to go folder where it does check-out and remove the .svn and .project folders explicitly. After that if I run the build again it is successful.

So can any one help me configure this in such a way that the Bamboo runs the "svn cleanup" automatically after check-out.

Thanks and Regards,

Sahil Amar

2 answers

Please help me with this issue.. :(

We have a svn cleanup step that we put first in the plan. Occasionally we need it when we have cancelled a build after starting it but before the checkout to the ${} is complete. If the workspace has an issue it will fail on the checkout or update so the svn cleanup has to be done first. We keep this disabled most of the time because when a new branch is created, the workspace is not an "svn workspace" yet and the cleanup step will fail the build when the build is run on the brand new branch for the first time. When a build fails with "run cleanup first" we run the plan again after enabling the cleanup task. This covers most of the issues we have with workspaces. If the checkout is successful there should be no need for a cleanup, but I suppose you could put it in there anyway if that makes you happy.

We use a command task with the executable 'svn' defined and use the command line:

cleanup ${}

That should take care of it. You could also use a script with

...\path\to\your\svn.exe cleanup ${}

Suggest an answer

Log in or Join to answer
Community showcase
Renan Battaglin
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,095 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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot