To deploy a custom checker, you must install the checker package on the Klocwork Server and on each build machine:
- Copy the checker package zip file to the projects_root/plugins directory for the Klocwork Server, creating the directory if it doesn't already exist.
If the C/C++ checker is platform-specific, copy the zip file to projects_root/plugins/<platform-name>. See Deploying custom checkers for a list of platform names.
If you are deploying a C# checker, copy the zip file to projects_root/plugins/csharp.
- Wait 30 seconds to ensure the system updates the list of checkers.
- Deploy the new checker to the Server by running the kwdeploy sync command with the --url option, specifying the Klocwork Server host machine:
kwdeploy sync [--url http(s)://<host>:<port>]
The system adds the checker to the <server-install>/plugins directory.
- On each build machine, run the kwdeploy sync command with the --url option, specifying the Klocwork Server host machine:
kwdeploy sync [--url http(s)://<host>:<port>]
Note: If you don't see a message that states that the directory was updated, run the command again.
- Run an integration-build analysis with kwbuildproject:
kwbuildproject --tables-directory <dir> [<options>] <build_specification>
- Have connected desktop users synchronize with the Klocwork Server by running a desktop analysis in their IDE or by using kwcheck.
Tip: Add the
kwdeploy sync command with the
--url option to the top of your build script to automate this process and ensure that your build machines are always in sync with the Server.