CI Game: Getting no PMD or FindBugs points

27 views
Skip to first unread message

Torkil Grindstein

unread,
Sep 27, 2016, 3:06:04 AM9/27/16
to Jenkins Users
Hi.

We are running a Jenkins server with CI game. I have tried to configure the system, but I do not get PMD/FindBugs points in the CI Game.

Our spec:
Jenkins v2.13
CI Game v1.25
PMD plugin v3.45
FindBugs plugin v4.65
Static Analysis Utilities v1.48

The build runs smoothly, with correct status on warnings, e.g.
PMD: 3 warnings from one analysis.

Upon clicking on the warning we get to learn that this is a NORMAL priority warning.


Then I would assume that the final score should be -2 points (+1 for successful build, -3 for adding NORMAL PMD warning), but the score card gives just 1 point for successful builds.


I have the same problem with FindBugs.


The log says this:

[ci-game] evaluating rule: Build result
[ci-game] scored: 1.0
[ci-game] evaluating rule: Increased number of passed tests
[ci-game] evaluating rule: Decreased number of passed tests
[ci-game] evaluating rule: Increased number of failed tests
[ci-game] evaluating rule: Decreased number of failed tests
[ci-game] evaluating rule: Increased number of skipped tests
[ci-game] evaluating rule: Decreased number of skipped tests
[ci-game] evaluating rule: HIGH priority PMD warnings
[ci-game] evaluating rule: NORMAL priority PMD warnings
[ci-game] evaluating rule: LOW priority PMD warnings

...which indicates that CI Game is trying to evalaute the PMD warnings, but does not find the new warning. It also looks like the FindBugs is not scanned at all.

On my Build Settings I have checked for "Publish FindBugs analysis results" and "Publish PMD analysis results".

On my Post-build Actions I have checed for "FindBugs warnings" and "PMD warnings".

I can not see where I fail....? Pleeeeeeaaaase help :)

Thanks,
Torkil

Torkil Grindstein

unread,
Sep 28, 2016, 7:57:49 AM9/28/16
to Jenkins Users
Update:

After Jenkins reboot, FindBugs was also scanned, and also scored!

So, the problem seems only to apply for PMD.

I just did a commit that fixed one PMD error and one FindBugs error (two separate errors).

PMD: 48 warnings from one analysis.


FindBugs: 76 warnings from one analysis.

But on the Game, only the FindBugs warning is taken into account:
1 HIGH priority findbugs warnings were fixed   5.0
The build was successful 1.0
 -> 6 points given.


Log:
[ci-game] evaluating rule: Build result
[ci-game] scored: 1.0
[ci-game] evaluating rule: Increased number of passed tests
[ci-game] evaluating rule: Decreased number of passed tests
[ci-game] evaluating rule: Increased number of failed tests
[ci-game] evaluating rule: Decreased number of failed tests
[ci-game] evaluating rule: Increased number of skipped tests
[ci-game] evaluating rule: Decreased number of skipped tests
[ci-game] evaluating rule: PMD violation
[ci-game] evaluating rule: FindBugs violation
[ci-game] evaluating rule: HIGH priority PMD warnings
[ci-game] evaluating rule: NORMAL priority PMD warnings
[ci-game] evaluating rule: LOW priority PMD warnings
[ci-game] evaluating rule: New HIGH priority Findbugs warnings
[ci-game] evaluating rule: New NORMAL priority Findbugs warnings
[ci-game] evaluating rule: New LOW priority Findbugs warnings
[ci-game] evaluating rule: Fixed HIGH priority Findbugs warnings
[ci-game] scored: 5.0
[ci-game] evaluating rule: Fixed NORMAL priority Findbugs warnings
[ci-game] evaluating rule: Fixed LOW priority Findbugs warnings

Is there a bug in the PMD or CIGame plugin? Should I use other versions? Pleeeease :)

Torkil
Reply all
Reply to author
Forward
0 new messages