Checkstyle, FindBugs, PMD & Co: Health thresholds

863 views
Skip to first unread message

jcrouvi

unread,
Apr 21, 2011, 2:42:05 AM4/21/11
to Jenkins Users
Hi,

We use Hudson ver. 1.395.
I have defined a new Maven 2/3 Job and configured the Health
thresholds for Checkstyle, ..., & Co. as follows: 100%: 6, 0%: 6

This job has got about:
14 PMD warnings
8 Findbugs warnings
13 Checkstyle warnings

When this job is built, his Build stability is always 'sunny'!
Why?
I expect that the Build stability should be 'stormy'.

Thank you for your help.

Best Regards
J.-Claude

Ullrich Hafner

unread,
Apr 21, 2011, 3:14:02 AM4/21/11
to jenkins...@googlegroups.com
On 04/21/2011 08:42 AM, jcrouvi wrote:
> Hi,
>
> We use Hudson ver. 1.395.
> I have defined a new Maven 2/3 Job and configured the Health
> thresholds for Checkstyle, ...,& Co. as follows: 100%: 6, 0%: 6

>
> This job has got about:
> 14 PMD warnings
> 8 Findbugs warnings
> 13 Checkstyle warnings
>
> When this job is built, his Build stability is always 'sunny'!
> Why?
> I expect that the Build stability should be 'stormy'.
>
> Thank you for your help.
>
> Best Regards
> J.-Claude


This is currently not supported for jobs using the Maven job type. Can
you please add your comments to JENKINS-4912? I need to remove the
configuration options until that feature is fixed...

Ulli

jcrouvi

unread,
Apr 21, 2011, 4:17:08 AM4/21/11
to Jenkins Users

Swindells, Thomas

unread,
Apr 21, 2011, 5:12:37 AM4/21/11
to jenkins...@googlegroups.com
Have you tried using the static analysis plugin, with Post Build Action of Publish combined analysis results - this adds together the PMD, Findbugs and checkstyle warnings is then able to mark the build as unstable if you set some thresholds,

Thomas


**************************************************************************************
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postm...@nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00
**************************************************************************************

Jean-Claude

unread,
Apr 20, 2011, 9:29:49 AM4/20/11
to jenkins...@googlegroups.com
Hi,

We use Hudson ver. 1.395.
I have defined a new Maven 2/3 Job and configured the Health thresholds for

Checkstyle, ..., & Co. as follows: 100%: 6, 0%: 6

This job has got about:
14 PMD warnings
8 Findbugs warnings
13 Checkstyle warnings

When this job is built, his Build stability is always 'sunny'!
Why?
I expect that the Build stability should be 'stormy'.

Thank you for your help.

Best Regards
J.-Claude

--
View this message in context: http://jenkins.361315.n4.nabble.com/Checkstyle-FindBugs-PMD-Co-Health-thresholds-tp3462992p3462992.html
Sent from the Jenkins users mailing list archive at Nabble.com.

jcrouvi

unread,
May 4, 2011, 3:15:08 AM5/4/11
to Jenkins Users
Hi,

Thank you for your suggestion.
Did you mean this plugin?: https://wiki.jenkins-ci.org/display/JENKINS/Analysis+Collector+Plugin
when not, could you pleas post the link of the plugin you meant?
Thank you
J.-Claude
> This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmas...@nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.

Eyal Edri

unread,
May 4, 2011, 3:25:49 AM5/4/11
to jenkins...@googlegroups.com
I also had this issue with the findbugs plugin.

It only worked when you create a 'free-style-project'.
Only then it shows you text areas for the different types of error levels
so you can choose for how many bugs you want it to fail or become
unstable.

You can configure maven job in it as well.

> -----Original Message-----
> From: jenkins...@googlegroups.com [mailto:jenkinsci-
> us...@googlegroups.com] On Behalf Of jcrouvi
> Sent: Wednesday, May 04, 2011 10:15 AM
> To: Jenkins Users
> Subject: Re: Checkstyle, FindBugs, PMD & Co: Health thresholds
>

Swindells, Thomas

unread,
May 4, 2011, 4:51:41 AM5/4/11
to jenkins...@googlegroups.com
Yeh, that appears to be the one installed on our system.

Thomas

-----Original Message-----
From: jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] On Behalf Of jcrouvi
Sent: Wednesday, May 04, 2011 8:15 AM
To: Jenkins Users

Hi,


**************************************************************************************
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postm...@nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.

jcrouvi

unread,
May 4, 2011, 10:30:41 AM5/4/11
to Jenkins Users
Hi,

I installed https://wiki.jenkins-ci.org/display/JENKINS/Analysis+Collector+Plugin
and encountered the following use case:
- The plugin works well, we can configure the different thresholds.
- The build behaves correctly according to the number of warnings
and the configured thresholds.
- Thank your for the advise.

In our case, we want only to display the 'Duplicate Code Results'. The
'Duplicate Code Results' don't have to impact the health of the build.
Is it possible to configure the Analysis Collector Plugin so that some
warnings are ignored?
I didn't find any option to configure the Analysis Collector Plugin
this way.

Best Regards
J.-Claude.
> This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmas...@nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.

Ulli Hafner

unread,
May 4, 2011, 11:17:52 AM5/4/11
to jenkins...@googlegroups.com
This is not yet possible. An issue already exists.

However, I fixed the maven bug with the help of Kohsuke at the Hackathlon this weekend. A new plugin release will be available soon.

Ulli
--
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.



jcrouvi <jcr...@yahoo.com> schrieb:
Reply all
Reply to author
Forward
0 new messages