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
- 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.
- 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.
- 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.