TeamCity plugin always causes a clean checkout

Forum for users of SQL Compare schema synchronization utility

TeamCity plugin always causes a clean checkout

Postby MrJul » Wed Sep 26, 2012 9:17 am

As soon as the RedGate TeamCity plugin is installed, all started builds now contain the following log line:
Clean build enabled: removing old files from D:\\BuildAgent\\work\\[...]

This causes a full checkout on every build, which takes time, and automatically rechecks the "clean all files before build" in the build configuration even if it was unchecked before. Note that the plugin isn't even used in any build. Its mere presence causes this behavior. Uninstalling the RedGate plugin it from the TeamCity server resolves the problem immediately.

From TeamCity developer (at
Please contact RedGate guys with this problem. Most likely somewhere in the code they have smtg like: BuildType.setOption(BuildTypeOptions.BT_CLEAN_BUILD, true). Not sure why they do this by they obviously forget to call BuildType.persist() so that this setting is changed on disk too.
Posts: 1
Joined: Wed Sep 26, 2012 9:10 am

Postby nforss » Tue Oct 16, 2012 6:24 am

I have the same problem. This is really annoying as it causes the build to take a few minutes longer than necessary.
Posts: 2
Joined: Tue Oct 16, 2012 6:22 am

Postby DavidSimner » Mon Oct 29, 2012 12:51 pm

We've fixed this bug in today's release ( It will now only enable the clean build option for builds that use our runner, leaving all other builds untouched. You can download the fixed build from:

Let us know if you have any further problems,

Posts: 54
Joined: Thu Feb 04, 2010 5:05 pm

Return to SQL Compare Previous Versions

Who is online

Users browsing this forum: No registered users and 1 guest