[JIRA] (JENKINS-60238) Warnings plugin "export your issues into a supported format" not useable

11 views
Skip to first unread message

J.van.Geel@VDLSteelWeld.com (JIRA)

unread,
Nov 21, 2019, 5:54:02 AM11/21/19
to jenkinsc...@googlegroups.com
Jelle van Geel created an issue
 
Jenkins / Bug JENKINS-60238
Warnings plugin "export your issues into a supported format" not useable
Issue Type: Bug Bug
Assignee: Ulli Hafner
Attachments: log.txt
Components: warnings-ng-plugin
Created: 2019-11-21 10:53
Environment: org.jenkins-ci.main:jenkins-war:2.204
Warnings Next Generation Plugin 7.2.0
Priority: Minor Minor
Reporter: Jelle van Geel

My goal is to import a generic JSON file that contains the result of a static analyzer tool that is not supported native.

As described in the documentation it should be able to use JSON log files with the Warnings Plugin: https://github.com/jenkinsci/warnings-ng-plugin/blob/master/doc/Documentation.md#export-your-issues-into-a-supported-format

From the documentation I expect that the following file would be parsed without problems: https://github.com/jenkinsci/warnings-ng-plugin/blob/master/src/test/resources/io/jenkins/plugins/analysis/warnings/json-issues.log

Creating a Jenkinsfile with the following content:
recordIssues( enabledForFailure: true, aggregatingResults: true, tools: [warningsPlugin()] )

Using this into the Jenkinsfile results in the following output:

Could not instantiate {enabledForFailure=true, aggregatingResults=true, tools=[@warningsPlugin()]} for io.jenkins.plugins.analysis.core.steps.RecordIssuesStep: java.lang.UnsupportedOperationException: no known implementation of class io.jenkins.plugins.analysis.core.model.Tool is using symbol 'warningsPlugin'

So the bug is that I am enable to parse native JSON files as described in the documentation.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

J.van.Geel@VDLSteelWeld.com (JIRA)

unread,
Nov 21, 2019, 5:55:03 AM11/21/19
to jenkinsc...@googlegroups.com
Jelle van Geel updated an issue
Change By: Jelle van Geel
My goal is to import a generic JSON file that contains the result of a static analyzer tool that is not supported native.

As described in the documentation it should be able to use JSON log files with the Warnings Plugin: [https://github.com/jenkinsci/warnings-ng-plugin/blob/master/doc/Documentation.md#export-your-issues-into-a-supported-format]

From the documentation I expect that the following file would be parsed without problems: [https://github.com/jenkinsci/warnings-ng-plugin/blob/master/src/test/resources/io/jenkins/plugins/analysis/warnings/json-issues.log]

Creating a Jenkinsfile with the following content:
recordIssues( enabledForFailure: true, aggregatingResults: true, tools: [warningsPlugin()] )

Using this into the Jenkinsfile results in the following output:

Could not instantiate
\
{enabledForFailure=true, aggregatingResults=true, tools=[@warningsPlugin()]} for io.jenkins.plugins.analysis.core.steps.RecordIssuesStep: java.lang.UnsupportedOperationException: no known implementation of class io.jenkins.plugins.analysis.core.model.Tool is using symbol 'warningsPlugin'

So the bug is that I am
enable unable to parse native JSON files as described in the documentation.

ullrich.hafner@gmail.com (JIRA)

unread,
Nov 21, 2019, 6:34:04 AM11/21/19
to jenkinsc...@googlegroups.com
Ulli Hafner commented on Bug JENKINS-60238
 
Re: Warnings plugin "export your issues into a supported format" not useable

The correct ID is issues:

recordIssues( enabledForFailure: true, aggregatingResults: true, tool: issues() )

J.van.Geel@VDLSteelWeld.com (JIRA)

unread,
Nov 21, 2019, 7:07:07 AM11/21/19
to jenkinsc...@googlegroups.com

ullrich.hafner@gmail.com (JIRA)

unread,
Nov 21, 2019, 7:42:03 AM11/21/19
to jenkinsc...@googlegroups.com

ullrich.hafner@gmail.com (JIRA)

unread,
Nov 21, 2019, 7:43:02 AM11/21/19
to jenkinsc...@googlegroups.com
Ulli Hafner commented on Bug JENKINS-60238
 
Re: Warnings plugin "export your issues into a supported format" not useable

I improved the documentation, see https://github.com/jenkinsci/warnings-ng-plugin/pull/275.

The format is listed with the correct ID In the file SUPPORTED-FORMATS as well.

ullrich.hafner@gmail.com (JIRA)

unread,
Nov 21, 2019, 7:43:02 AM11/21/19
to jenkinsc...@googlegroups.com
Ulli Hafner resolved as Not A Defect
 
Change By: Ulli Hafner
Status: Open Resolved
Resolution: Not A Defect
Reply all
Reply to author
Forward
0 new messages