The current plugin version is designed to work with TeamCity 5.0 and TeamCity 4.5.1 and laterx (there are two plugin configurations).
First the plugin is turned on, it initiates clean checkout, after which in the checkout directory there are only essential files and no "garbage". At this moment the state of the checkout directory is saved into a file in the Agent temp caches directory named
<checkout_direcorydirectory_name>name_hash>.snapshot using DiskDir format. Checkout directory to snapshot name map is saved int snapshot.map file.
This snapshot is used later (after the build finish or at the start of the next build) to determine which files and folders are newly created or modified. It is done by actual files' presence, last modification data and size comparison with corresponding records in the snapshot.
The plugin adds its configuration settings panel to the runner settings page: choose Swabra mode as before or after build.
If you choose
Before next build mode build files cleanup will be performed after the build. Between builds there will be clean copy in the checkout directory.
If you choose
Before next build mode previous build files cleanup will be performed at build start. You only need to use this mode if files are required between builds.
Strict mode option to enable Swabra "strict" mode The build will fail if at the start there are any files which were created or modified during previous build.
Verbose output option to enable detailed logging to build log.
Issue in TeamCity tracker.