Closed goostleek closed 7 years ago
If you look at the server-log of Jenkins instance. Perhaps there is a stacktrace?
And are you sure that the findbugsXml.xml contains findings on files that were changed in the PR?
Yes, I can browse all violations on the particular Jenkins build. Additionally the log output I added above contains the line telling there are 25
violations
Found 25 violations from ViolationConfig [reporter=FINDBUGS, pattern=.*/findbugsXml\.xml$].
Unfortunately I don't have access to Jenkins master log files yet to dig into it deeper. Once I have I'll try to update the issue to provide more info.
If you can attach the findbugs.xml-file here that might help.
I'm affraid this is not an option at the moment. The client I work for is very concerned about privacy of the source code. But when I have time I will prepare a dummy project to provide some example Findbugs output.
Ok, I have solved the issue. The problem was that I have misused the plugin. Although the build has several Findbugs warnings the PRs used in testing the configuration do not contain the affected code. Once I have added some code with a new Findbugs warning to the PR they appear immediately as a PR comment.
It works as expected now. However I still don't have the comments placed in the right place. I would expect to have the comment placed in the file at the a line which is reported by Findbugs. At the moment the comment is presented only in the Overview tab of the particular PR (in the Activity section).
(If you need I can include a screenshot to show how it looks)
Did you perform the merge before performing the analysis?
Den 27 feb. 2017 12:11 PM skrev "Marcin Kłopotek" <notifications@github.com
:
Ok, I have solved the issue. The problem was that I have misused the plugin. Although the build has several Findbugs warnings the PRs used in testing the configuration do not contain the affected code. Once I have added some code with a new Findbugs warning to the PR they appear immediately as a PR comment.
It works as expected now. However I still don't have the comments placed in the right place. I would expect to have the comment placed in the file at the a line which is reported by Findbugs. At the moment the comment is presented only in the Overview tab of the particular PR (in the Activity section).
(If you need I can include a screenshot to show how it looks)
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jenkinsci/violation-comments-to-stash-plugin/issues/33#issuecomment-282692270, or mute the thread https://github.com/notifications/unsubscribe-auth/AAa1E-NNWjfaO4Rho7J5Usc5NgkmUQqlks5rgq9CgaJpZM4MBaB_ .
No, I'm using PR builder approach. The Findbug analysis is done on the branch used to create the PR. Are you suggesting to merge it back to parent branch to fix this?
Yes. Let Jenkins merge source branch into target branch and perform the analysis. Without pushing the merge-commit ofcourse =)
I have configured the plugin for Checkstyle and Findbugs violations but only Checkstyle comments are visible in the PR. Do you have any suggestions how I can investigate the reason of having no comments for Findbugs? Last part of my Jenkins PR builder job log is:
I'm using the latest version of the plugin (
1.43
)