cancel
Showing results for
Did you mean:
See all
See all
##### Groups
Explore all groups

# Run svn cleanup automatically after checkout

Hi,

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

This widget could not be displayed.

This widget could not be displayed.

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 ${bamboo.build.working.directory} 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${bamboo.build.working.directory}

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

...\path\to\your\svn.exe cleanup \${bamboo.build.working.directory}

### Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Community showcase
Published 10 hours ago in Bitbucket

### Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

39 views 0 5

### Atlassian User Groups

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

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.