Installing Klocwork for the Jenkins plugin
Before you begin, ensure that Jenkins is installed and configured
- 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.
- 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.
- 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.