Child pages
  • Swabra

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
This section concerns only the latest version of the plugin. You are welcome to download it directly from public TeamCity server

The plugin is bundled since TeamCity 5.1. The recent version is described in the documentation for the latest TeamCity release.

General Info




Apache 2.0


free, open-source

Plugin Description

Plugin adds support for cleaning files newly created during the build and reporting about modified files and restore initial checkout directory state as it is after receiving files from VCS repositoryTo learn more about the plugin, please read the recent plugin page in the documentation for the latest TeamCity release.

Plugin Development Status

In final stage of development. Snapshot builds are available.
Everyone is encouraged to try the plugin.

Production quality.

TeamCity Versions Compatibility

The current plugin version is designed to work Plugin was bundled with TeamCity 4. 5.1 and later.


Directly from public TeamCity server: last nightly build


In TeamCity 6.0 Swabra became a build feature.
To learn more on using old Swabra versions, please read previous versions of this document.

Installation instructions

TeamCity versions 4.x

  1. Put into <TeamCity Data Directory>/plugins folder.
  2. Restart the server.

Plugin usage

The plugin can be used with Ant, Command Line, Duplicates finder (.NET), Duplicates finder (Java), FxCop, Inspection, Ipr, Maven2, MSBuild, NAnt, Rake, sln2003, sln2005, sln2008 runners. Swabra tab provides UI options to enable scanning checkout directory for newly created and modified files.

Cleaning can be performed before or after the build.

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 working directory named <checkout_direcory_name>.snapshot using DiskDir format.

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.

Сonfiguring plugin via UI options

The plugin adds its configuration settings panel to the runner settings page: choose swabra mode as before or after build.

Check Verbose output option to enable detailed logging to build log.

Known Issues



If you believe you've faced a bug: Issue Tracker (project: TeamCity)
If you want to ask a question or discuss: Forum

Sources in JetBrains Subversion repository.
Builds at JetBrains public TeamCity instance.

Related Materials

Issue in TeamCity tracker.

 on GitHub