-
Notifications
You must be signed in to change notification settings - Fork 1
TeamCity integration
##Prerequisites
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.
##Configure Version Control Settings In "Checkout Options" set "VCS checkout mode" to "Automatically on agent (if supported by VCS roots)"
In VCS root option set "Working copy format" to version of installed TortoiseSVN.
##Create report tab Go to Report Tabs" in Project Settings and click Create new build report tab. Fill the form as follows:
##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:
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)