Static Code Analysis & Compiler warnings build statistics

66 views
Skip to first unread message

Frederick

unread,
Feb 14, 2017, 4:33:56 AM2/14/17
to Jenkins Users
Hi all,

Jenkins 2.45 & Ruby on Rails projects.

I'm trying to get the build history to show warnings so if there is a change for example in the number of Rubocop warnings, the devs can see the previous number of warnings, compared to the number of warnings fir latest commit.

I cannot seem to get the Static Code Analysis or Warnings plugins to work with Jenkins.

Can anybody share any pointers to documents that I can follow to set up these plugins to work and show the build statistics and their history of warnings and errors please?

TIA

Frederick

Frederick

unread,
Feb 14, 2017, 5:43:39 AM2/14/17
to Jenkins Users
Looking at the output for Brakeman, it appears that the warnings are being shown as on: Screen Shot 2017-02-14 at 10.33.40.png

Looking at the output for the Rubocop report, the warnings are not being shown as on: Screen Shot 2017-02-14 at 10.34.28.png

What I'd like to do, is to get the warnings shown for the Rubocop report, like they are being shown for Brakeman report.

Any pointers for getting the Rubocop warnings to work would be much appreciatied.

TIA

Frederick
Screen Shot 2017-02-14 at 10.33.40.png
Screen Shot 2017-02-14 at 10.34.28.png

Frederick

unread,
Feb 15, 2017, 11:30:53 AM2/15/17
to Jenkins Users
Well, I have tried configuring these plugins for a freestyle project, and they are all working OK now for that:

But if I try to setup Checkstyle with the following pipeline configuration:

stage('Rubocop CheckStyle Publisher') {
  node {
    step([$class: 'CheckStylePublisher',
      canRunOnFailed: true,
      defaultEncoding: '',
      healthy: '',
      pattern: '**/rubocop-checkstyle-result.xml',
      unHealthy: '',
      useStableBuildAsReference: true
    ])
  }
}

Then I get the following errors:

Am I doing something not quite right, or is this a known bug in Checkstyle?

TIA

Frederick


Screen Shot 2017-02-15 at 16.25.36.png
Screen Shot 2017-02-15 at 16.28.09.png
Screen Shot 2017-02-15 at 16.28.32.png
Reply all
Reply to author
Forward
0 new messages