Klocwork Jenkins Plugin

The Klocwork Jenkins Plugin integrates the modern and comprehensive static analysis tool, Klocwork, into the highly extensible Continuous Integration tool Jenkins. This powerful combination features the convenience of Jenkins builds with the automation of ground-breaking static analysis delivered by Klocwork.



  • Automatic Klocwork build discarding
  • Multiple Klocwork server setup for simple build automation across multiple servers
  • Parse-Log summary with quick-link to parse-log
  • Build-Log summary with quick-link to build-log
  • Build using Command Line Call or Pre-Existing Build Specification
  • Embedded Klocwork Review in Jenkins for ease of access
  • Per-Build Pie-Chart identifying Fixed, Existing and New issues
  • Per-Project "Trend Graph" to indicate Klocwork results trend
  • Easy to set up
  • Automated Klocwork build analysis
  • Support for Klocwork v9.6


Providing a Klocwork server installation has been set up, a Klocwork command can be invoked on a new or existing project's configuration page. The Klocwork analysis is then synchronised with the build. Viewing a Klocwork Trend Graph requires at least two successful consecutive Klocwork builds, and the per-build pie-chart appears on each successful Klocwork build page.Klocwork Review can be easily accessed from the the project page of Jenkins. From here each successful Klocwork build page can be viewed, as well as issue management for that particular project.


Revision history

Version 1.16

Web API fetching of issues moved to Publisher from Builder to allow greater flexibility for customers (post-processing of results before they are published)

SSL support

Query field added to xml generation to make fetching of issues more flexible

Various minor bugfixes

Upgrade to latest version of kwjlib

Kwbuildproject command and compiler options separated

Klocwork tables directory can now be removed after each analysis

Support for multiple build specifications, and for wildcard characters

Support for multi-configuration projects using variables

Version 1.15

Enabled Web API support (through kwjlib) for displaying Klocwork results for Klocwork v9.6 and later

Added dashboard view with single-project Klocwork Trend Graph

Version 1.14.1

Allowing Klocwork publisher to appear in Maven job

Version 1.14

Fixed NullPointerException and added compiler options

Version 1.13

Fix reopened issue #12861 - Klocwork - update to recognize 9.5.x xml schema

Version 1.12

Fix issue #12861 - Klocwork - update to recognize 9.5.x xml schema

Version 1.11

Merge pull request - Add compatibility with Klocwork v9.6 (embedded results disabled)

Version 1.10

Fix issue #13668 - Klocwork Plugin Fails if no KW Issues

Version 1.9

Fix issue #14005 - Major issue when Klocwork reporting is enabled

Version 1.8.1

Allow publisher part to appear in maven jobs.

Version 1.8

Fixed issue #13743 - Jenkins 1.463 + Klocwork plugin - crashes when saving configuration

Version 1.7

Fixed issue #12535 - Link to the line which contains the Klocwork error instead of just linking to the file.

Version 1.6

Update to latest DTkit versions

Version 1.5

Updated version number. Provided variable ${BUILD_ID} when specifying Klocwork tables directory such that a unique directory can be used for each build.

Added functionality to specify options for kwbuildproject. Useful for changing location of tables directory, adding compiler options, etc.

Version 1.4

Updated xml parser to work with reports generated by Klocwork v9.5. New features: per-build pie chart showing number of issues and their state, a link to view the build.log, link to view the parse_errors.log and a link to access Klocwork Review within Jenkins. Now to test on Windows.

Version 1.3

Fixed issue #10773 - Remember environment variables set in one Shell task in later tasks

Fixed issue #10775 - Checkbox "Display All errors" does not work

Fixed issue #10776 - No Klocwork Results even if there is a unstable build

Version 1.2

Fixed issue #10455 - Klocwork plugin running on linux master cannot retrieve report files from windows slave

Version 1.1

Fixed issue #10379 - Allowed statuses for Klocwork report are incorrect

Fixed args parsing

Version 1.0

Initial version

Download

To download the plugin please fill out all fields in the form below. You will then be emailed a link in order to download the file. If you are unable to download the resource, please contact the webmaster.


Multiple resources can be selected using Ctrl

emenda [emend'a]
tr.v [latin]
1. to improve, raise standards
2. to make free from errors
3. to raise level of quality