You can't define the ranks on your own. Rank is a kind of "new priority" 
introduced by the FindBugs team. So each bug has a constant priority and rank. 
What I'm doing in my plug-in is to map either each bug rank (if the check boy 
is set) or priority to one of the three plug-in priorities LOW, NORMAL, HIGH. 
The checkbox just determines which value is used to assign a bug to one of the 
plug-in priorities.

The mapping is defined in 
https://github.com/jenkinsci/findbugs-plugin/blob/master/plugin/src/main/java/hudson/plugins/findbugs/parser/FindBugsParser.java#L329

Ulli


 
Am 07.03.2013 um 21:32 schrieb Paulo Cheadi Haddad Filho <[email protected]>:

> Hey guys!
> 
> I'm setting up a Jenkins server with Sonar for code analysis and coverage 
> with FindBugs, Cobertura and PMD.
> 
> Then I was asked to create a job in it that runs tests for some project and 
> if Findbugs find some scary or worst problem then the build results in 
> failure.
> 
> After some googling I came up to this where it says
> Release 4.26
> Added option to either use FindBugs bug priority or rank when mapping the 
> plug-in warning priorities
> I thought that, with this change, I could set ranks in thresholds seen in 
> this image
> 
> 
> 
> 
> 
> So, I would like to know if it's possible to do what I was asked to and, if 
> so, how to do it. And if I got it wrong, what's "use rank as priority" stands 
> for?
> 
> Thanks in advance!
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to