I have installed the Jenkins Violations plugin v0.7.11 and I am having an issue getting it to display FXCop and StyleCop violations.
In the settings I have entered the recommended XML filename pattern as:
**/*/FxCopViolations.xml
**/*/StyleCopViolations.xml
The report displays:
fxcop <span style='color:red'>No reports</span> stylecop <span style='color:red'>No reports</span>
But when building locally in Visual Studio I can see that there are violations which should be appearing.
The XML files exist in the bin folders.
What am I missing here?
Here are the settings I am using for my project: Execute Windows batch command build step with the following:
fxcopcmd /file:"<files>" /out:"%WORKSPACE%\fxcop-report.xml" /rs:="C:\Program Files (x86)\Microsoft Visual Studio 11.0\Team Tools\Static Analysis Tools\Rule Sets\MinimumRecommendedRules.ruleset" /s /searchgac
I then have the XML filename pattern as
fxcop-report.xml
Hope this is of some use to you