Hello All,

I am using a Multibranch Pipeline job to trigger my build. One of the steps 
of the build is to run sonar. After the sonar is run, findbugs-result.xml 
file is created the target/sonar directory.

I publish the results using the below commonds in groovy. The build shows 
that there is 1 warning for findbug. But I do not see in the Jenkins 
Dashboard (Findbugs Warning portlet). 

If i create a normal freestyle job and try to do the same thing using a 
post build action, the results are visible on the jenkins dashboard.


bat "${env.M2_HOME}/bin/mvn sonar:sonar --settings 
../HudsonSettings/settings.xml  -B -U -P reporting-plugins"
step([$class: 'FindBugsPublisher', canComputeNew: false, canRunOnFailed: 
true, defaultEncoding: '', excludePattern: '', healthy: '', includePattern: 
'', isRankActivated: true, pattern: '**/target/sonar/findbugs-result.xml', 
unHealthy: ''])

Can anyone help ?

Thanks and Regards
Saroj Gharat

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/96eca28f-52a5-407c-9b84-69fc85d7e214%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to