Skip to content

TeamCity integration

Cezary Piątek edited this page Nov 5, 2016 · 3 revisions

##Prerequisites

SVN repositories

CodeTopology is using svn.exe to generate svn log. It is a part of TortoiseSVN so you have to install TortoiseSVN with selected "command line client tools" option.

TortoiseSVN install

##Configure Version Control Settings In "Checkout Options" set "VCS checkout mode" to "Automatically on agent (if supported by VCS roots)"

VCS checkout mode

In VCS root option set "Working copy format" to version of installed TortoiseSVN.

VCS checkout mode

##Create report tab Go to Report Tabs" in Project Settings and click Create new build report tab. Fill the form as follows:

VCS checkout mode

##Create build step do generate report file

Unpack CodeTopology.zip on the same server where is installed TeamCity (or TC agent is woring) for example C:\Tools\CodeTopology. Next add to your build a powershell build step configured as follows:

VCS checkout mode

Script source for SVN repository

c:\Tools\CodeTopology\GenerateReport.ps1 -VCS SVN -CheckoutDir %system.teamcity.build.checkoutDir%

Script source for Git repository

c:\Tools\CodeTopology\GenerateReport.ps1 -VCS Git -CheckoutDir %system.teamcity.build.checkoutDir%

...and the last step is to add "CodeTopologyReport.html" file to your build artifacts (Artifact paths field)

VCS checkout mode

Clone this wiki locally