buildPlugin() now with Warnings NG and GitHub checks

64 views
Skip to first unread message

Tim Jacomb

unread,
Aug 6, 2020, 2:54:21 AM8/6/20
to Jenkins Developers, Xiong Kezhi, Ullrich Hafner, Oleg Nenashev

Hi all


I’m happy to announce that the `buildPlugin()` library step that is used by almost all plugins on ci.jenkins.io now uses the Warnings NG plugin for static code analysis reporting and quality control.


We have set default quality gate for:

  • No new spotbugs issues

  • No checkstyle issues

Note: in order for spotbugs to calculate your initial issues you will need your master branch ran once to establish a baseline


You can customise the quality gates, however you wish (enable / disable them, or adjust the severity of the warnings), see the documentation for the pipeline-library and the Warnings NG documentation.


On top of the Warnings NG addition we have switched ci.jenkins.io over to GitHub app authentication (mailing list post). This gives us much higher rate limits and access to the GitHub checks API.


Lastly we have installed the GitHub checks plugin which is a GSoC 2020 project by Kezhi Xiong which exposes an API allowing consuming plugins to publish checks results and annotations to GitHub.



See Kezhi’s GSoC phase 2 demo on YouTube.


Next steps:

  • We hope to soon land support for the Code Coverage API plugin in `buildPlugin()` - Code Coverage API plugin already has support for the GitHub checks plugin. - Pull request.

  • Kezhi and I will be hosting a Jenkins online meetup Mid August on GitHub app authentication and the GitHub checks integration.

  • Possibly some tuning of severity on some issues - see discussion


Feedback


We would love any feedback, please feel free to provide it either here, in Gitter or in the issue tracker for the respective component.


Thanks

Tim


Olblak

unread,
Aug 6, 2020, 3:26:57 AM8/6/20
to Jenkins Developers ML
Well done \o/
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.

Matt Sicker

unread,
Aug 6, 2020, 10:56:03 AM8/6/20
to jenkin...@googlegroups.com
Very nice! I love automation. :)



--
Matt Sicker
Senior Software Engineer, CloudBees
Reply all
Reply to author
Forward
0 new messages