TeamCity Add-in
 

Personal Build, Remote Run, Pre-tested Commit

Last modified: 26 May 2024

When working with a centralized version control system, where feature branches are not a part of the workflow, you normally have two options:

  • Build the solution and run tests locally before you commit your changes to the main branch. This way you can make sure that you will not introduce any problems to the repository, but you might spend significant time waiting until the build and tests are over.

  • Commit your untested changes to the main branch of your repository and then run build and tests on your build server. This way you can continue working after the commit, but at the risk of breaking the repository.

With TeamCity Add-in, you have a third option - you can quickly create a personal build, which will only be visible to you and include your selected non-committed changes.

Then you can initiate a remote run on the TeamCity server - TeamCity Add-in will take a snapshot of the selected changes, send them to your TeamCity server and start your personal build and tests. Note that by doing this, you do not commit anything to your VCS, and you can continue working while your changes are built and tested remotely.

You can use the pre-tested commit option to automatically commit your changes only if your personal build succeeds.

You can monitor execution of your personal builds in two ways:

  • On the web interface of your TeamCity server, your personal builds are designated with the corresponding icons. For example, in the illustration below, the failed build is a personal one.

    Personal build in TeamCity web UI
  • Select ReSharper | TeamCity | My Changes in the main menu and check states of your changes:

    TeamCity Add-in: My Changes window

    Similarly to the TeamCity web UI, changes corresponding to personal builds are designated with special icons. If necessary, you can click Hide non-personal ThemedIcon.FilterShowPersonalOnly.Screen.(Gray).png on the toolbar, so that only changes corresponding to personal builds are displayed in the list.

    You can see a brief summary of each remote run underneath the corresponding change set, and click it to see more details. Information in this view is provided by your TeamCity server.

    If necessary, you can view any of the changesets or build details in the web UI of your TeamCity server. To do so, select the desired item and click Open in Web ThemedIcon.OpenInBrowser.Screen.(Gray).png on the toolbar.

    For more information, refer to Analyzing Server Changesets, Builds, and Tests.