Start here

Home
About Klocwork
What's new
Fixed issues
Release notes
Installation

Reference

C/C++ checkers
Java checkers
C# checkers
MISRA C 2004 checkers
MISRA C++ 2008 checkers
MISRA C 2012 checkers
MISRA C 2012 checkers with Amendment 1
Commands
Metrics
Troubleshooting
Reference

Product components

C/C++ Integration build analysis
Java Integration build analysis
Desktop analysis
Refactoring
Klocwork Static Code Analysis
Klocwork Code Review
Structure101
Tuning
Custom checkers

Coding environments

Visual Studio
Eclipse for C/C++
Eclipse for Java
IntelliJ IDEA
Other

Administration

Project configuration
Build configuration
Administration
Analysis performance
Server performance
Security/permissions
Licensing
Klocwork Static Code Analysis Web API
Klocwork Code Review Web API

Community

View help online
Visit RogueWave.com
Klocwork Support
Rogue Wave Videos

Legal

Legal information

Installing and configuring Klocwork for the TeamCity plugin

Prerequisites
  • The Klocwork Server needs to be installed and started
  • Project configuration needs to be configured for the build
  • The TeamCity package needs to be installed and configured
  1. Copy the kwteamcity plugin to your /.BuildServer/plugins folder. For example, on Linux:
    ~/.BuildServer/plugins
    On Windows:
    %userprofile%\.BuildServer\plugins
    You can also upload the plugin zip file using the TeamCity UI once the server has started. Go to Administration > Diagnostics > Browse Data Directory.
    Note: The Klocwork Server does not have to be installed on the same machine as the TeamCity server or agents.
  2. Start the TeamCity server and agent by running the proper command. For example, on Linux:
    <Teamcity_install_dir>/bin/runAll.sh start
    On Windows:
    <Teamcity_install_dir>/bin/runAll.bat start
    The default port of the TeamCity service is 8111. The console will show a superuser login that you can use to create a new user.
  3. Wait a few moments for the agent to start. Once it starts, it will connect to the TeamCity server. The kwteamcity plugin agent portion will be automatically installed to the agent. The agent will automatically restart after the plugin installation is complete. The installation process may take several minutes for it to download and install the plugin.
    Note: The Klocwork Server does not need to be installed to the agent. The kwteamcity plugin has all the necessary analysis tools.
Once you've completed these steps, you are ready to start analyzing builds in TeamCity. The next step is to create a project and enable the analysis. For more information, see TeamCity quick start guide.