Basic Teamcity and SVN question

I am trying to set up teamcity for the first time and have run into a bit of an issue. I am trying to just run a really basic build that checks out from a SVN repository. I set up the SVN for the build and the Test Connection works fine. I then set up a basic build script. When I try to run the build I get the following error

*svn: Cannot replace a directory from within
jetbrains.buildServer.vcs.VcsException: org.tmatesoft.svn.core.SVNException: svn: Cannot replace a directory from within
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSupport.buildPatch(SvnSupport.java:16)
at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.buildPatch(BuildTypeImpl.java:568)
at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.buildPatch(BuildTypeImpl.java:494)
at jetbrains.buildServer.serverSide.impl.BuildStarter$3.run(BuildStarter.java:3)
at java.lang.Thread.run(Unknown Source)
Caused by: org.tmatesoft.svn.core.SVNException: svn: Cannot replace a directory from within
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:49)
at org.tmatesoft.svn.core.internal.io.svn.SVNReader.parse(SVNReader.java:288)
at org.tmatesoft.svn.core.internal.io.svn.SVNConnection.read(SVNConnection.java:222)
at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.read(SVNRepositoryImpl.java:1036)
at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.update(SVNRepositoryImpl.java:594)
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.exportFiles(SvnConnection.java:133)
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.buildPatch(SvnConnection.java:353)
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSupport.buildPatch(SvnSupport.java:62)
... 4 more
org.tmatesoft.svn.core.SVNException: svn: Cannot replace a directory from within
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:49)
at org.tmatesoft.svn.core.internal.io.svn.SVNReader.parse(SVNReader.java:288)
at org.tmatesoft.svn.core.internal.io.svn.SVNConnection.read(SVNConnection.java:222)
at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.read(SVNRepositoryImpl.java:1036)
at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.update(SVNRepositoryImpl.java:594)
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.exportFiles(SvnConnection.java:133)
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.buildPatch(SvnConnection.java:353)
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSupport.buildPatch(SvnSupport.java:62)
at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.buildPatch(BuildTypeImpl.java:568)
at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.buildPatch(BuildTypeImpl.java:494)
at jetbrains.buildServer.serverSide.impl.BuildStarter$3.run(BuildStarter.java:3)
at java.lang.Thread.run(Unknown Source)*

I realize this is a subversion error, but the only references to this problem can find deal with merging or messing with your repository. In my situation I have a clean repository I set up specifically for this, I am not sure why this error is coming up. When I interact with this repository outside of Teamcity using tortoise I have no problems. I am just hoping I am missing something stupid, any suggestions would be greatly appreciated.

Thanks in advance,
Gabe

2 comments

Hello Gabriel,

I think this problem could appear when directory (your project root directory) was "replaced" with another directory or deleted from repository at some revision. I would recommend you to enable "clean sources before build" option in build configuration and check whether it will resolve the problem. Then you may disable this option.

Thanks,
Alexander Kitaev.

0

Great, thanks a lot, that did in fact work. I thought I had tried that before, but since I am still learning this system it is possible something else was not set right at that time.

Thanks again!

Gabe

0

Please sign in to leave a comment.