That why I recommend using the *new* warnings (and not the totals). Then you 
find all new warnings regardless of the total number of warnings. 

These warnings are shown in the REST report: 
https://wiki.jenkins-ci.org/display/JENKINS/Static+Code+Analysis+Plug-ins#StaticCodeAnalysisPlug-ins-remoteapi

Just click the REST link in the bottom right corner of the analysis results. 
The select XML and you will get something like:
<checkStyleResult>
  <newSuccessfulHighScore>false</newSuccessfulHighScore>
  <newZeroWarningsHighScore>false</newZeroWarningsHighScore>
  <numberOfFixedWarnings>0</numberOfFixedWarnings>
  <numberOfHighPriorityWarnings>0</numberOfHighPriorityWarnings>
  <numberOfLowPriorityWarnings>0</numberOfLowPriorityWarnings>
  <numberOfNewWarnings>0</numberOfNewWarnings>
  <numberOfNormalPriorityWarnings>9</numberOfNormalPriorityWarnings>
  <numberOfWarnings>9</numberOfWarnings>
  <pluginResult>SUCCESS</pluginResult>
  <successfulHighScore>0</successfulHighScore>
  <successfulSinceBuild>0</successfulSinceBuild>
  <successfulSinceDate>0</successfulSinceDate>
  <warning />
  <warning />
  <warning />
  <warning />
  <warning />
  <warning />
  <warning />
  <warning />
  <warning />
  <warningsDelta>0</warningsDelta>
  <zeroWarningsHighScore>0</zeroWarningsHighScore>
  <zeroWarningsSinceBuild>0</zeroWarningsSinceBuild>
  <zeroWarningsSinceDate>0</zeroWarningsSinceDate>
</checkStyleResult>
Or choose 
http://localhost:8080/job/Warnings/10/checkstyleResult/api/xml?depth=1 to see 
even more details…

But you can easily navigate using the model objects in groovy, and example is 
in the email-ext templates.

Ulli

Am 08.07.2013 um 19:15 schrieb Johannes Wienke 
<[email protected]>:

> On 08.07.13 17:01 schrieb Kevin Fleming (BLOOMBERG/ 731 LEXIN):
>> I don't think the Warnings plugin exports that information in a way that 
>> email-ext could extract it at this point, but it's certainly doable.
>> 
>> I'd be quite careful about just using the number of warnings though; a 
>> commit that resolves an existing warning and introduces a new one would be 
>> missed, as the total count would not change.
> 
> That's exactly the reason why I asked for information regarding single
> warnings.
> 
> Cheers,
> Johannes
> 
> 

-- 
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