Thank you a lot for this pointer.

I know about the Warnings Plugin, but I was thinking that it parses Log 
Files (console or a specific configured file), line by line with a regex.
An XML Report is not a Log file and therefor I was thinking that I could 
not do it like this.

I will have a look at the source code.


Le vendredi 18 août 2017 21:58:12 UTC+2, Ullrich Hafner a écrit :
>
> You don’t need to create a new plugin. What you need is an XML parser for 
> the warnings plugin (which uses analysis-core). In [1] you find some hints 
> on how to create your own parser. You can also look at some other XML 
> parsers in the parsers package to see what actually needs to be done.
>
> If your parser is ready, you can file a PR for this plugin in order to get 
> the parser included for the next release. 
>
> [1] https://wiki.jenkins.io/display/JENKINS/Warnings+Plugin
>
>
> Am 18.08.2017 um 05:56 schrieb Jérémie Bresson <[email protected] 
> <javascript:>>:
>
> Dear Jenkins Developers,
>  
>
> *In the “Before starting a new plugin” section of the documentation, you 
> mention that we should contact you.*
>  
>
> JXLint is a framework to create static analysis tool (linter) in java. See 
> http://selesse.com/jxlint/ 
>
> I am working on a tool based on this framework.
>
> There is the possibility to obtain an HTML report or to get an XML report 
> that looks like this:
>  
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <issues>
>
>     <issue
>
>         name="Lines should not be longer than 80 characters"
>
>         severity="Warning"
>
>         message="Line 2 is too long (length: 105)"
>
>         category="Format"
>
>         summary="The line length should be less than or equal to 80."
>
>         explanation="In a text file (ending with `.txt`) the line should 
> not be longer than 80 characters..."
>
>         location="***/example-project-txt/src/file.txt"
>
>         lineNumber="2"
>
>     />
>
>     <issue
>
>         name="Multiple new lines at the end of the document"
>
>         severity="Warning"
>
>         message="Line 9 is one of the multiple empty new lines at the end 
> of the document. This is not allowed"
>
>         category="Format"
>
>         summary="Text document should end with zero or one new line. 
> Additional new lines should be removed."
>
>         explanation="In a text file (ending with `.txt`) there should be 
> no multiple new line at the end of the document..."
>
>         location="***/example-project-txt/src/file.txt"
>
>         lineNumber="9"
>
>     />
>
> </issues>
>  
>
> I would like to be able to see the results directly in Jenkins. There is 
> already great support with the analysis-core functionality. I somehow need 
> to bridge both frameworks together. This would be a new 
> "jxlint-analysis-plugin" project (similar to "android-lint-plugin" for 
> example https://wiki.jenkins.io/display/JENKINS/Android+Lint+Plugin ).
>  
>
> Features are straight forward:
>
>    - This add a new post-processing build step
>    - One input (configuration in the Job) to indicates where the xml 
>    Files are located.
>    - During the build the files are parsed and transformed to the 
>    structure that Jenkins needs to produce its report.
>
> Thank you in advance for your feedback,
>  
>
> Cheers,
>
> Jérémie
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-dev/82dedac3-1a57-4dca-b8fa-ba4c2e2950f6%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-dev/82dedac3-1a57-4dca-b8fa-ba4c2e2950f6%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/581c6d9c-d204-48ba-83eb-2eea64a09ded%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to