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 Klocwork for the Jenkins plugin

Before you begin, ensure that Jenkins is installed and configured

  1. Copy the kwjenkins plugin to your <JENKINS_HOME>/plugins folder. You can also upload the plugin zip file using the Jenkins UI once the server has started. Go to Manage Jenkins > Manage Plugins >, Select the Advanced tab, then scroll to the Upload Plugin section.
    Note: The Klocwork Server does not have to be installed on the same machine as the Jenkins server or agents.
  2. Start the Jenkins server by running the proper command. You need to restart the Jenkins server if it is already running. The process is dependent on the operating system that you installed Jenkins on. The default port of the Jenkins service is 8080. For more information on starting or re-starting your server, see the Jenkins documentation.
  3. If you have any agents configured in Jenkins, you may need to wait for them to reconnect with the Jenkins server after a restart. After Klocwork Analysis has been configured for a job, the necessary Klocwork tools will be deployed to any agent machine prior to a job being run. The installation process may take several minutes to deploy the Klocwork tools to any agent machine(s).
    Note: The Klocwork tools do not need to be installed to the agents. The kwjenkins plugin has all the necessary analysis tools.
Once you've completed these steps, you are ready to start analyzing builds in Jenkins. The next step is to create a project and enable the analysis. For more information, see our guide for integrating Klocwork CI with Jenkins.