Custom Checkout Directory as root drive

Hi,

we have configured our development to have root directory X:, which is realised on windows using the subst command.

But when we define the root directory as checkout directory with activated "Clean all files before build" we are experiencing problems, when data has been fetched once (means: the directory contains files from the last build):

jetbrains.buildServer.RunBuildException: Failed to clean files from: X:\
at jetbrains.buildServer.agent.impl.buildStages.startStages.CleanBuildCheckoutDirectoryIfNeededStage$1.logFailedToCleanEntireFolder(CleanBuildCheckoutDirectoryIfNeededStage.java:40)
at jetbrains.buildServer.agent.impl.buildStages.startStages.DirectoryCleanerStage$1.logFailedToCleanEntireFolder(DirectoryCleanerStage.java:59)
at jetbrains.buildServer.agent.impl.directories.SmartDirectoryCleanerImpl.cleanFolder(SmartDirectoryCleanerImpl.java:67)
at jetbrains.buildServer.agent.impl.buildStages.startStages.DirectoryCleanerStage.doBuildStage(DirectoryCleanerStage.java:30)
at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor$1.callStage(BuildStagesExecutor.java:31)
at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor$1.callStage(BuildStagesExecutor.java:24)
at jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.callRunStage(StagesExecutor.java:78)
at jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.doStages(StagesExecutor.java:37)
at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor.doStages(BuildStagesExecutor.java:24)
at jetbrains.buildServer.agent.impl.BuildRunAction.doStages(BuildRunAction.java:70)
at jetbrains.buildServer.agent.impl.BuildRunAction.runBuild(BuildRunAction.java:50)
at jetbrains.buildServer.agent.impl.BuildAgentImpl.doActualBuild(BuildAgentImpl.java:247)
at jetbrains.buildServer.agent.impl.BuildAgentImpl.access$100(BuildAgentImpl.java:48)
at jetbrains.buildServer.agent.impl.BuildAgentImpl$1.run(BuildAgentImpl.java:220)
at java.lang.Thread.run(Unknown Source)

Again, the first checkout on an empty directory works, but the 2nd does not work because clean fails with above error. Manually cleaning the directory and restart the build works again. When the "Clean all files before build" is deselected it works. But that option is not what we want.

We are using TeamCity-7.1.2 on Windows.

Please sign in to leave a comment.