Re: Plugin idea: publish the analysis result (reading from the jxlint xml format)

2019-04-18 Thread Ullrich Hafner

> Am 18.04.2019 um 08:41 schrieb Jérémie Bresson :
> 
> I know this thread is old, but I took time to work again on this idea.
> 
> Since then, the code was reorganized into: 
> * Jenkins' warnings next generation plug-in 
> .
> * Analysis Parsers Library .
> 
> I would like to collect feedback on the format that could be used, I have 
> opened JENKINS-57098 to discuss this. 
> https://issues.jenkins-ci.org/browse/JENKINS-57098 
> 
> 
> In particular, in the asciidoctor case, I am facing the fact that the 
> log-appender that I can create is not notified when the analysis is 
> terminated.
> This means that working with a file format where I can just append a new 
> record is easier... This is why I have switched from XML (where a root 
> container is required) to a file containing a list of JSON structures on each 
> line (à la logstash).
> 
> I would appreciate feedback…

I’ll comment in Jira…  

> 
> Le samedi 19 août 2017 11:02:14 UTC+2, Jérémie Bresson a écrit :
> 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 >:
>> 
>> 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:
>> 
>>  
>> 
>> 
>> 
>> 
>> > 
>> 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"
>> 
>> />
>> 
>> > 
>> 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"
>> 
>> />
>> 
>> 
>> 
>>  
>> 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 jenkinsci-de...@googlegroups.com <>.
>> To view this discussion on the web visit 
>> 

Re: Plugin idea: publish the analysis result (reading from the jxlint xml format)

2019-04-18 Thread Jérémie Bresson
I know this thread is old, but I took time to work again on this idea.

Since then, the code was reorganized into: 
* Jenkins' warnings next generation plug-in 
.
* Analysis Parsers Library .

I would like to collect feedback on the format that could be used, I have 
opened *JENKINS-57098 *to discuss this. 
https://issues.jenkins-ci.org/browse/JENKINS-57098

In particular, in the asciidoctor case, I am facing the fact that the 
log-appender that I can create is not notified when the analysis is 
terminated.
This means that working with a file format where I can just append a new 
record is easier... This is why I have switched from XML (where a root 
container is required) to a file containing a list of JSON structures on 
each line (à la logstash).

I would appreciate feedback...

Le samedi 19 août 2017 11:02:14 UTC+2, Jérémie Bresson a écrit :
>
> 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 :
>>
>> 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:
>>  
>>
>> 
>>
>> 
>>
>> >
>> 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"
>>
>> />
>>
>> >
>> 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"
>>
>> />
>>
>> 
>>  
>>
>> 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 jenkinsci-de...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-dev/82dedac3-1a57-4dca-b8fa-ba4c2e2950f6%40googlegroups.com
>>  
>> 
>> .
>> 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 

Re: Plugin idea: publish the analysis result (reading from the jxlint xml format)

2017-08-19 Thread Jérémie Bresson
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  >:
>
> 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:
>  
>
> 
>
> 
>
> 
> 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"
>
> />
>
> 
> 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"
>
> />
>
> 
>  
>
> 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 jenkinsci-de...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-dev/82dedac3-1a57-4dca-b8fa-ba4c2e2950f6%40googlegroups.com
>  
> 
> .
> 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 jenkinsci-dev+unsubscr...@googlegroups.com.
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.


Re: Plugin idea: publish the analysis result (reading from the jxlint xml format)

2017-08-18 Thread Ullrich Hafner
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 :
> 
> 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:
> 
> 
> 
> 
> 
> 
>  
> 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"
> 
> />
> 
>  
> 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"
> 
> />
> 
> 
> 
> 
> 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 jenkinsci-dev+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-dev/82dedac3-1a57-4dca-b8fa-ba4c2e2950f6%40googlegroups.com
>  
> .
> 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 jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/A2728A2C-2AB3-49BE-85A6-2FA2836FF6F9%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: Message signed with OpenPGP


Re: Plugin idea: publish the analysis result (reading from the jxlint xml format)

2017-08-18 Thread Robert Sandell
Unit test reports and static analysis reports are not the same thing.
Analysis-core would be the way to go iiuc.

/B

2017-08-18 14:18 GMT+02:00 Victor Martinez :

> Maybe https://wiki.jenkins.io/display/JENKINS/xUnit+Plugin could be
> extended to support this use case?
>
> --
> 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 jenkinsci-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-dev/187c0802-8500-4365-87fb-b788fc074c25%
> 40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Robert Sandell
*Software Engineer*
*CloudBees Inc.*

-- 
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 jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CALzHZS0LwkiNOgt5y9Mz_bqzWDPaOH6idv83K-73YHqCXiTSjw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Plugin idea: publish the analysis result (reading from the jxlint xml format)

2017-08-18 Thread Victor Martinez
Maybe https://wiki.jenkins.io/display/JENKINS/xUnit+Plugin could be 
extended to support this use case?

-- 
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 jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/187c0802-8500-4365-87fb-b788fc074c25%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Plugin idea: publish the analysis result (reading from the jxlint xml format)

2017-08-18 Thread Jérémie Bresson
 

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:

 











 

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 jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/82dedac3-1a57-4dca-b8fa-ba4c2e2950f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.