Find plugins

4.68Minimum Jenkins requirement: 1.625.1ID: warnings

Older versions of this plugin may not be safe to use. Please review the following warnings before using an older version:

This plugin generates the trend report for compiler warnings in the console log or in log files.

Installation Requirements

This plug-in requires the utility plug-in "analysis-core" (called "Static Analysis Utilities" in the update manager). Please ensure that the latest version of this plug-in is also installed.


(lightbulb) This plug-in is supported by the Static Analysis Collector plug-in that collects different analysis results and shows the results in aggregated trend graphs. Additionally, health reporting and build stability is also based on the aggregated results.

You need to add the post-build action scan for compiler warnings to actually get warnings. (By default none will be generated.) 

Select one or more parsers corresponding to the warnings you want to get. Each parser will generate a specific warning. Parser javac generates Java Warnings. The Maven parser generates Maven Warnings. Etc... 

The Warnings plug-in scans the console log or specified log files for warnings of different formats and reports the number of warnings found. This plug-in is part of the suite of static code analysis plug-ins that are documented on a separate WIKI page.

  • Support for javac (ant, maven, command line), Eclipse Java Compiler, JavaDoc Compiler, Hudson/Jenkins HPI, MSBuild, GCC, GNU Linker, SUN Studio C++, Gnat (Ada), Erlang, PC-Lint compiler warnings (configuration of PcLint), Eclipse Buckminster, Oracle Invalids, Doxygen, Robocopy, Perforce, Cobol, PHP, Flex, YUI Compressor, puppet-lint, FxCop, C++ lint, CSSLint, JCReport, JSLint, Pep8, PYLint, StyleCop, IBM XL C/C++ Compiler and Linker, NAG Fortran Compiler, GNU Fortran Compiler, Resharper Commandline Tools, Microsoft PREfast, Imported from the violations plug-in: Codenarc, Gendarme
  • Build summary showing the new and fixed warnings of a build
  • Several trend reports showing the number of warnings per build
  • Overview of the found warnings per module, package, category, or type
    • Parsing of Maven pom.xml or Ant build.xml configuration files to obtain the module or project name
    • Parsing of Java or C# files to obtain the package or name space name
  • Detail reports of the found warnings optionally filtered by severity (or new and fixed)
  • Colored HTML display of the corresponding source file and warning lines:
    • Direct link to the warning line
    • Highlighting of single lines as well as line ranges
    • Highlighting of multiple line ranges per warning (different color for primary range)
    • Tool tip describing the warning message
  • Failure threshold to mark a build as unstable
  • Configurable project health support
  • Works with the freestyle and native m2 build option (activated on goal compile)
  • Remote API to export the build quality and found warnings
  • Several tokens to simplify post processing of the results
  • Localization available for: DE, JA (Please help to localize findbugs for your locale!)

The current release is available in the download section. This plug-in is developed and maintained by Ullrich Hafner. Please use the mailing lists or issue tracker to ask questions, create feature request or bug reports, since I don't read the comment section on this page regularly.

Adding support for new warning types

If there is a parser missing, then you can simply extend the available set of parsers using one of the following methods.

Defining a new parser using the user interface

Since release 3.8 you can define new parsers dynamically in the system configuration section of Jenkins. Just navigate to http://\[jenkins-url\]/configure and create a new parser in section Compiler Warnings. The UI should be self explanatory, if there is something missing, please let me know on the mailing lists.

Writing a new parser that should be included in the warnings plug-in

Extending the existing set of supported warning formats is quite easy. If the format of the warnings messages could be parsed by an regular expression, then you only need to provide a new parser class and a corresponding test case:

  1. Set up your developing environment as described in the Plugin tutorial
  2. Clone the warnings plug-in from GitHub
  3. Run maven with the command mvn install to see if the plug-in builds before you change anything
  4. Add a new class YourFormatParser to the package hudson.plugins.warnings, see GccParser or JavacParser as examples
  5. Add a new test case YourFormatParserTest to the package hudson.plugins.warnings, see GccParserTest or JavacParserTest as examples.
  6. Note that the parser is automatically registered using the @Extension annotation
  7. Send a pull request to get your changes integrated

Writing a new standalone parser that will be deployed in a new plug-in

If your parser is only of interest for your team or company then you can also develop a parser that will be bundled into a separate and private plug-in. The development approach is quite similar:

  1. Set up your developing environment as described in the Plugin tutorial
  2. Create a new plug-in that depends on the latest release of the warnings plug-in
  3. Add a new parser class that implements WarningsParser. If your parser is based on regular expressions, then consider extending from either RegexpDocumentParser (multi-line parser) or RegexpLineParser (single-line parser).
  4. Annotate your class with @Extension
  5. Package your plug-in and deploy it to your Jenkins instance


Release 4.65

Release 4.64

Release 4.63

  • Compute author and commit information using the Git blame command. Show report of warnings by user on the job page and in the dashboard view. ( JENKINS-6748 - Analysis of Checkstyle Warnings per User RESOLVED )
  • Removed script checking with script security plugin, now a simple permission check makes editing of Groovy scripts secure ( JENKINS-43813 - Getting issue details... STATUS )
  • Added option to filter for categories (thanks to jpfeuffer for the pull request)
  • Make java parser be compatible with Kotlin compiler (thanks to Sean Flanigan for the pull request
  • Improved IAR parser (thanks to Kay van der Zander vor the pull request)

Release 4.62

  • Added a new symbol for pipelines: warnings
  • Added parser for Robot Framework Lint (thanks to Traitanit Huangsri for the pull request)

Release 4.61

Release 4.60

  • Improved performance of MS Build parser (thanks for Emil Styrke for the PR for JENKINS-42221)
  • Removed false positives for MS Build parser (JENKINS-36817)
  • Expose Groovy parser configuration for scripts (thanks to Thierry Lacour for the PR)

Release 4.59

  • Show the parent page if user selects an invalid URL (JENKINS-37195)
  • Don't use an empty category or type anymore when displaying the warning aggregations (JENKINS-38557)
  • Detect MSBuild command line warnings (JENKINS-38215)
  • Detect JavaDoc errors in 1.8 format (JENKINS-37975)
  • Do not access the workspace in pipelines (JENKINS-39532).

Release 4.58

Release 4.57

  • Added new parser for Ansible Lint (Thanks to Ce Qi for the pull request)
  • Added new parser for Sphinx-build (Thanks to Robert Williams for the pull request)

Release 4.56

  • Fixed deactivation of trend graphs (using the analysis collector plug-in)

Release 4.55

  • Prevent false positives: Let JavaDoc parser scan only lines containing the text javadoc (JENKINS-32298)

Release 4.54

  • Added new parsers for QAC, Metrowerks CodeWarrior (linker and compiler), Tasking VX compiler, EB tresos Studio (thanks to Sven Lübke for the PRs)
  • Reduced priorities of pep8 parser (JENKINS-32295)
  • Fixed false positive (JENKINS-34141)
  • Update of JavaDoc parser for Java 8 (JENKINS-32298)
  • Update of GnuMakeGccParser to match current version (thanks to Norbert Lange for the PR)
  • Fixed missing dependency to joda-time (JENKINS-17062)
  • Expand environment variables in file pattern (JENKINS-30735)
  • Validate pattern using the ant pattern validator (JENKINS-34760)
  • Immediately change the trend graph after configuration (JENKINS-22295)

Release 4.53

  • Added support for version 5 of the ARMCC compiler (Thanks to Dmytro Kutianskyi for the pull request)
  • Improved performance of the Eclipse Java parser (JENKINS-27664: Thanks to Tobias Gruetzmacher for the pull request)

Release 4.52

  • Don't alter SAX environment variable anymore (JENKINS-27548)
  • Fixed resolving of files with relative paths in workspace (JENKINS-32150)

Release 4.51

  • Improved several parsers (thanks for the pull requests)
  • Make maven plug-in mandatory since otherwise class loading exceptions will sometimes destroy the build configuration (JENKINS-21268, JENKINS-14727)

Release 4.50

  • Fixed broken configuration of include/exclude patterns (JENKINS-30329)

Release 4.49

  • Added support for workflow plug-in (Thanks to Antonio Muñiz and Manuel Recena for their PRs)
  • Fixed links in detail page of trend reports (JENKINS-29900)

Release 4.48

  • Improved computation of new and fixed warnings: now the state of a warning (old, new, fixed) is persisted (JENKINS-24940)
  • Improved several parsers: PyLint, PuppetLint, ScalaStyle, MSBuild, IntelliJ, Resharper (thanks for the pull requests!)

Release 4.47

  • Fixed aggregation action for matrix builds

Release 4.46

Release 4.45

  • Reverted XML escaping of messages (JENKINS-25511, JENKINS-17309)
  • Added option to use previous build as reference build when calculating new and fixed warnings (JENKINS-13458, thanks to Tom Saunders for the pull request)
  • Added parser for AspectJ (thanks to Tom Diamond for the pull request)

Release 4.44

  • Improved speed of Maven parser (thanks to Adrien Lecharpentier for the pull request)
  • Fixed threshold evaluation to set a build to unstable or failed (JENKINS-25501)

Release 4.42

  • Added new parser for Scala compiler warnings (thanks to Alexey Kislin for the pull request)
  • Added support Visual Studio 2013 CodeAnalysis format (thanks to Rafał Jasica for the pull request)
  • Apply include/exclude filters after absolute path expansion (JENKINS-24011)
  • Use default encoding when reading the console log (JENKINS-24611)
  • Fixed warnings column in matrix projects (JENKINS-23446)

Release 4.41 - new runtime requirement: at least Java 6

  • Improved PHP parser (thanks to Greg for the pull request)
  • Improved Puppet Lint parser (thanks to Jon Skarpeteig for the pull request)
  • Fixed Resharper name (thanks to Chris for the pull request)
  • Added IntelliJ IDEA parser (thanks to Alex Lopashev for the pull request)
  • Removed leading slash from image UR (JENKINS-23677)
  • Fixed encoding problems with messages using cyrillic alphabet (JENKINS-22744)

Release 4.40

  • Added support for PREfast Visual Studio Tools (thanks to Charles Chan for the pull request)
  • Fixed validation of Groovy parsers when lineNumber property is used (JENKINS-21569)

Release 4.39

  • Added support for Resharper commandline tools (JENKINS-21596, thanks to Rafał Jasica for the pull request)
  • Expose the current line number in Groovy parsers (JENKINS-21569)
  • Added support for tycho 0.19.0 (JENKINS-21377, thanks to Uwe Petschke for the pull request)
  • Improved Java parser to parse annotation warnings (JENKINS-21240)
  • Fixed icon URLs (JENKINS-21510)

Release 4.38

  • Fixed serialization of GNU Make and C Compiler warnings (JENKINS-20558)

Release 4.37

Release 4.36

  • Added new parser for GNU Fortran compiler (thanks to Mat Cross for the pull request)
  • Improved naming of several C compilers (thanks to Mat Cross for the pull request)
  • Improved regular expression of MS Build parser to catch Visual studio messages (JENKINS-19425)

Release 4.35

  • Added a view column that shows the number of warnings in a job
  • Fixed broken trend graph in dashboard (JENKINS-19425)

Release 4.33

  • Show affected console log when selecting a maven warning

Release 4.32

  • Make dependency to ant-plugin optional (JENKINS-17496)
  • Added support for JSLint warnings in Checkstyle format (JENKINS-19127)
  • Extract column number from warnings where available
  • Improved IAR parser

Release 4.28

  • Don't show trend and health reports of aggregated warnings (JENKINS-18852)
  • Fixed handling of localized warning messages in Doxygen parser (JENKINS-18913, thanks to Olaf Mandel for the pull request)
  • Fix sorting of warnings that are on same line but different column (JENKINS-19047)
  • Show results of threshold evaluation also in console log (JENKINS-18954)
  • Escape XML symbols in warning messages (JENKINS-17309)

Release 4.27

  • Implemented new parsers for Perl::Critic, JCReport, CSSLinit, PyLint, Pep8, StyleCop based on the existing violations plug-in parser that now work in slave builds (JENKINS-17786, thanks to Mihail Menev, Johann Vierthaler, Sebastian Seidl, Sebastian Hansbauer, Marvin Schütz for the patches!)
  • Added a new parser for NAG Fortran Compiler (thanks to Mat Cross for the patch!)
  • Added support for fatal errors in Wind River Diab Compiler (C/C++) parser (JENKINS-17075, thanks to Sebastian Seidl for the patch!)
  • Improved regular expression of IAR parser for EWarm 6.3 compiler
  • Improved regular expression of Cpp-Lint parser (JENKINS-18290)
  • Fixed NPE when a parser of the violations plug-in is used (JENKINS-15492 thanks to benny-shotvibe for the patch!)
  • Added aggregated result that are exposed via the REST URL warningsResult (JENKINS-17767, thanks to Sebastian Hansbauer, Marvin Schütz for the patch!)
  • Added some more fields that are exposed via the REST API (JENKINS-17767, thanks to Mihail Menev, Johann Vierthaler for the patch!)
  • Added Traditional Chinese translations (thanks to Pei-Tang Huang!)
  • Added system configuration option to disable console logging of all static analysis plug-ins (JENKINS-15246, thanks to Sebastian Seidl for the patch!)
  • Added system configuration option to fail a build when one of the static analysis plug-ins fails parsing its input (JENKINS-17663, thanks to Mihail Menev and Johann Vierthaler for the patch)
  • Fixed broken encoding handling in maven jobs (JENKINS-17657, thanks to André Lehmann!)

Release 4.26

  • Added three new parsers from the violations plug-in: Perl::Critic, StyleCop, PyLint (JENKINS-17911)
  • Fixed parser matching problems after name change of CLANG parser (JENKINS-17762)

Release 4.25

Release 4.23

  • Show more details in the fixed warnings view (JENKINS-15959)
  • Aggregate the maven parent module results in failed builds when the failure is caused by a threshold being hit (JENKINS-15324, JENKINS-12342)
  • Optimized http requests for static resources in the analysis plugins (JENKINS-16571)
  • Fixed missing build overview in maven jobs (JENKINS-16518)
  • Always use Xerces when parsing XML files (JENKINS-15613)
  • Read pom.xml to obtain path of output files in maven jobs (JENKINS-16250)
  • Show error message as file content if the source files could not be transferred to the master (JENKINS-16222)
  • Improved performance of dynamic parsers (Thanks to Jesse Glick for the patch, JENKINS-16526, JENKINS-16107)
  • Do not show blank Maven warnings (JENKINS-16826)

Release 4.21

  • Improved plug-in performance when dynamic groovy parsers are used (JENKINS-16526, JENKINS-16107, thanks to Jesse Glick for the patch)

Release 4.20

  • Added a new parser for IBM XLC Compiler and Linker (thanks to Andrew Gvozdev for the pull request)

Release 4.19

Release 4.18

  • Added option to consider only stable builds when calculating new warnings (Thanks to David Pärsson for the patch, JENKINS-15037)
  • Fixed NPE when comparing warnings (JENKINS-15414, JENKINS-15250)

Release 4.17

  • Fixed wrong computation of new and fixed warnings (JENKINS-14821)

Release 4.16

Release 4.15

  • Make dependency to maven plug-in optional (JENKINS-14727)
  • Improved performance if several dynamic parsers are defined (JENKINS-14614)

Release 4.14

Release 4.13

Release 4.12

  • Fixed problems when Apple LLVM compiler is used with make (JENKINS-14333)
  • Added new parser for GCC that detects the correct paths using debug messages of GNU make (thanks to Victor Hakoun)

Release 4.11

Release 4.10

  • Fixed NPE during de-serialization of 3.x configuration files (JENKINS-14281)

Release 4.9

Release 4.7

  • Reduce memory footprint of plug-in (thanks to Kohsuke for the patches)
  • Upgrade to YUI 2.9 (support for new bread crumbs and context menus: JENKINS-13532, thanks to OHTAKE Tomohiro for the patch)
  • Added option to suppress the automatic but time expensive resolution of relative path names (JENKINS-14024)
  • Added support for Eclipse 3.8/4.2 compiler messages (JENKINS-13969)
  • Added native parser for C++ Lint (JENKINS-14018)

Release 4.6

Release 4.5

  • Added hyperlinks to build summary if threshold is exceeded (JENKINS-12424)
  • Added parser for Apple LLVM compiler (thanks to Neil Davis for adding this parser)
  • Fixed trend graph showing the values of wrong parser (JENKINS-13656)

Release 4.4

  • Added option to filter projects with zero warnings in the warnings dashboard portlet (JENKINS-12984)
  • Center the affected source line in source view (JENKINS-13491)
  • Fixed incompatibility of detail tabs with new bread crumb view (JENKINS-13532)
  • Fixed history of warnings using the Eclipse Parser (JENKINS-13573)
  • Fixed missing JavaDoc parser (JENKINS-13610)
  • Added new parser for Wind river Diab C++ warnings (thanks to Yuta Namiki for the patch)
  • Improved IAR Parsers (thanks to Johan Holmberg of IAR for the valuable help): please use option --no_wrap_diagnostics when running the compiler

Release 4.3

  • Fixed deserialization of warnings trend graph portlet

Release 4.0

  • Added a new portlet that shows the warning totals as a line graph
  • Results are now shown separately for each parser (JENKINS-10319): i.e., links, trend graphs, result summary, detail pages, etc. are shown for each active parser. Even images are customizable, so if you would like to change the default image for your favorite parser please send me a corresponding image. You can have a look at the Java parser for an example.
  • Added new parser for Maven Console warnings
  • Added parsers of the violations plug-in (if the violations plug-in is installed):
    • Codenarc
    • CppLint
    • CSSLint
    • FxCop
    • Gendarme
    • JCReport
    • JSLint
    • Pep8
    • PYLint
    • StyleCop

Release 3.28

Release 3.27

  • Added support for puppet-lint (pull request by Jan Vansteenkiste)
  • Improved YUI Compressor parser (patch by Emidio Stani)
  • Fixed slave parsing with dynamic (Groovy script) or custom (extension point) parsers (JENKINS-12280, JENKINS-11926)

Release 3.26

  • Fixed initialization problem when configuring the warnings plug-in. (JENKINS-12075)

Release 3.25

  • Fixed NPE while configuring a graph with no builds yet (JENKINS-12045)
  • Group warnings by relative path if the associated language has no package or namespace concept (JENKINS-11846)
  • Allow skipping of calculating "new" issues (JENKINS-11761)
  • Fixed display of 'Use delta for new warnings' option (JENKINS-11758)
  • Ignore 'new warnings' threshold in the first build (JENKINS-11718)
  • Ignore console annotations when scanning for warnings (JENKINS-11675)
  • Stop parsing immediately if user presses cancel (JENKINS-11792)
  • Added support for Armcc warnings (Thanks to Emanuele Zattin for this patch)

Release 3.24

  • Improved performance of console annotation filtering (JENKINS-11675)

Release 3.23

  • Fixed parsing of file names if console log is decorated with notes (JENKINS-11675)

Release 3.22

  • Added parser for YUI Compressor (JENKINS-4502)
  • Fixed enlarge link for trend graphs (JENKINS-11324)
  • Fixed visibility of 'enable trend graph' link
  • Fixed reading of results if analysis is invoked during 'mvn site' (JENKINS-10820)

Release 3.21

  • Ignore failed builds when evaluating the build history in trend graphs and new warnings calculation (JENKINS-10682)
  • Added OSGi bundle detection when grouping warnings by module (JENKINS-10681)
  • Use the path as a replacement for the package grouping for all warnings that are not from Java or C# files (issue 2)
  • Cancel parsing if the build has been aborted by the current user (JENKINS-10627, JENKINS-9158)
  • Start from workspace root when scanning for warnings in m2 projects (JENKINS-10332)
  • Improved MS Build warnings (JENKINS-10566)

Release 3.20

  • Fixed broken file names if the warning message is prefixed by an ant goal (JENKINS-9926)

Release 3.19

  • Added option to specify different parsers for console log and for workspace files (JENKINS-8833)
  • Added new tokens for token macro plug-in (JENKINS-10027): now tokens WARNINGS_NEW, WARNINGS_FIXED, WARNINGS_COUNT and WARNINGS_RESULT are available.

Release 3.18

  • Added new trend graph that shows the total number of warnings with auto-scaled range axis (JENKINS-9745)
  • Added persistence for example field when configuring a Groovy parser (JENKINS-9535)
  • Fixed broken result images in build summary (JENKINS-9997)

Release 3.17

  • Added new extension point to simplify creation of project or tool specific parsers
  • Fixed broken detail views when using a reverse proxy (JENKINS-3410, thanks to Benjamin Cabé for the fix)
  • Show the reference build that is used to compute new and fixed warnings (when build thresholds are set)
  • Improved logging statements when build is executed on a slave

Release 3.16

  • Added configuration option to enable automatic project and module name detection by reading all Ant project.xml and Maven pom.xml files (JENKINS-8915, JENKINS-9090)
  • Added preliminary support for the Token Macro Plugin: WARNINGS_COUNT expands to the number of warnings and WARNINGS_RESULT expands to the plug-in build result (stable, unstable, failed)

Release 3.15

  • Fixed missing dependency to Hudson/Jenkins 1.395 (JENKINS-8509)

Release 3.14

  • Jenkins update to links and documentation
  • Show progress text while dashboard portlet graphs are created

Release 3.13

Release 3.12

  • Added support for multi-configuration projects (JENKINS-6772)Release 3.12
  • Added support for multi-line warning messages in user definable parsers (JENKINS-8399)
  • Improved MS Build parser to also handle Stylecop warnings (JENKINS-8347)
  • Improved JavaDoc parser (JENKINS-7718)
  • Fixed sorting of date labels of dashboard trend graphs (JENKINS-8476)
  • Fixed evaluation of builds that will be considered in the dashboard trend graph (JENKINS-8283)
  • Fixed warnings totals counter (JENKINS-7775)

Release 3.11

  • Added new parser for GHS Multi compiler warnings (thanks to Joseph Boulos for the patch)
  • Added build status thresholds for each warning priority (JENKINS-3561)
  • Fixed parsing of file names if console log is decorated with notes (JENKINS-7417)
  • Fixed parsing of tycho Eclipse Java compiler warnings (JENKINS-4996)

Release 3.10

Release 3.9

  • Fixed parsing of multi-line Eclipse warnings (JENKINS-7077)

Release 3.8

  • Added a new generic parser that can be configured in the UI to enable parsing of project specific warning messages without the need of extending the plug-in (JENKINS-3895).
  • Fixed ant links (JENKINS-6862)
  • Fixed parsing of multi-core build with MS Build (JENKINS-6709)
  • Fixed parsing of doxygen 1.7.1 messages (JENKINS-6971)
  • Fixed computation of module names for maven projects (JENKINS-6768)
  • Don't report an error message if a maven module does not contain a report file (JENKINS-6895)

Release 3.7

  • Fixed naming of maven modules (JENKINS-6513)
  • Group files by path if there is no package or namespace found (JENKINS-6698)

Release 3.6

Release 3.5

  • Added trend graph portlets for the dashboard view
  • Added option to start the plug-in even for failed builds (JENKINS-6117)
  • Added 'enlarge' link for trend graphs that shows a detail page with the graph
  • Fixed ordering of warnings in detail views (JENKINS-6132)
  • Fixed warning distribution graph in files detail view (JENKINS-6139)

Release 3.4

Release 3.3

  • Added parser for PHP warnings (thanks to Shimi Kiviti for the patch)
  • Added parser for Flex SDK warnings (thanks to Vivien Tintillier for the patch)
  • New warnings computation is now based on the current build and the reference build (i.e., the last successful build, see JENKINS-5147)
  • Visualized plug-in build status (based on the healthiness thresholds)
  • Added high scores for successful builds
  • Improved warnings detection for the Intel C++ compiler 11.1 (JENKINS-5402)
  • Fixed handling of arrays in warning messages (JENKINS-5868)
  • Don't show project action if there are no warnings (JENKINS-5473)
  • Don't show trend graph configuration on job creation (JENKINS-5294)
  • Improved remote API, now the warning keys are also exposed (JENKINS-5195)

Release 3.2

Release 3.1

  • Added parser for AcuCobol warning messages (JENKINS-5024, thanks to Jerry Shea for the patch)
  • Improved MSBuild parser to also display sharepoint warnings (JENKINS-4731)
  • Fixed regular expression for GCC parser (JENKINS-4707)
  • Fixed trend report link if there are no results available yet (JENKINS-5156)
  • Fixed preview of trend reports
  • Added dependency to Hudson 1.337 due to a class loader bug in previous versions (JENKINS-4993)

Release 3.0

  • Extracted common code of the static code analysis plug-ins into a new utility plug-in "analysis-core"
  • Several bug fixes and small improvements

Release 1.x-2.x Changelog

ArchivesGet past versions
Previous Security Warnings