-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JENKINS-57098] Add JSON Parser #168
Conversation
Codecov Report
@@ Coverage Diff @@
## master #168 +/- ##
===========================================
+ Coverage 88.37% 88.4% +0.03%
- Complexity 1293 1320 +27
===========================================
Files 161 162 +1
Lines 4146 4209 +63
Branches 441 464 +23
===========================================
+ Hits 3664 3721 +57
- Misses 327 328 +1
- Partials 155 160 +5
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #168 +/- ##
============================================
+ Coverage 88.37% 88.43% +0.05%
- Complexity 1293 1322 +29
============================================
Files 161 162 +1
Lines 4146 4210 +64
Branches 441 464 +23
============================================
+ Hits 3664 3723 +59
Misses 327 327
- Partials 155 160 +5
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #168 +/- ##
============================================
+ Coverage 88.4% 88.43% +0.03%
- Complexity 1295 1322 +27
============================================
Files 161 162 +1
Lines 4147 4210 +63
Branches 441 464 +23
============================================
+ Hits 3666 3723 +57
- Misses 326 327 +1
- Partials 155 160 +5
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #168 +/- ##
============================================
+ Coverage 88.4% 88.43% +0.03%
- Complexity 1295 1322 +27
============================================
Files 161 162 +1
Lines 4147 4210 +63
Branches 441 464 +23
============================================
+ Hits 3666 3723 +57
- Misses 326 327 +1
- Partials 155 160 +5
Continue to review full report at Codecov.
|
The |
Thanks! Should I simply add it as a second parser to WarningsPlugin. In the help we can briefly describe the two formats and link to the documentation? |
Thank you a lot for merging this! I would appreciate that the parser can be called from the "Jenkins Warnings Next Generation Plugin", I am not sure about how it can be integrated. While I was looking at the documentation (details of the analysis result), I have seen that the plugin is capable of exporting existing issues as JSON report with:
You get something like this: {
"_class": "io.jenkins.plugins.analysis.core.restapi.ReportApi",
"issues": [
{
"baseName": "file.txt",
"category": "Text-check",
"columnEnd": 0,
"columnStart": 0,
"description": "Some error 1",
"fileName": "/______/.jenkins/workspace/test/file.adoc",
"fingerprint": "9CED6585900DD3CFB97B914A3CEB0E79",
"lineEnd": 5,
"lineStart": 5,
"message": "Some error 1 message",
"moduleName": "",
"origin": "customChecker",
"packageName": "-",
"reference": "10",
"severity": "ERROR",
"type": "-"
},
{
"baseName": "file2.txt",
"category": "Text-check",
"columnEnd": 0,
"columnStart": 0,
"description": "Some error 2",
"fileName": "/______/.jenkins/workspace/test/file2.adoc",
"fingerprint": "CE60859A425B0EC230F79F554F85C254",
"lineEnd": 6,
"lineStart": 6,
"message": "Some error 2 message",
"moduleName": "",
"origin": "customChecker",
"packageName": "-",
"reference": "10",
"severity": "ERROR",
"type": "-"
}
],
"size": 2
} I think that I should create a new PR to add a parser that is capable of reading this kind of report:
This way we would have 2 different JSON cases:
@uhafner: What do you think? |
Yes, it would be helpful to have such a parser as well. We can also add the parser from this PR as third alternative to the tool
The selection of the correct parser is automatically done by the file extension. Or would you rather prefer to define a new tool |
+1 Maybe I should rename the current Do I need to open a new JIRA issue for my next PR? |
That would make sense, yes. Then we can reuse the
No, just go ahead. |
See PR #177 |
https://issues.jenkins-ci.org/browse/JENKINS-57098