Adding the Next Generation Warnings Plugin

https://plugins.jenkins.io/warnings-ng/
  1. Go to Manage Jenkins > Manage Plugins > Available > Search for "Warnings Next Generation".
  2. Install the plugin and restart Jenkins.
  3. Go to Project Configuration.
  4. In Post Build Action select Record compiler warnings and static analysis results.

  5. Set up the following configuration:

  6. The plugin is now configured.