[JIRA] (JENKINS-57854) With "Warnings Plugin Native Format" tool, the expected input xml is not consistent with the exported xml

9 views
Skip to first unread message

dev@jmini.fr (JIRA)

unread,
Jun 5, 2019, 2:14:02 AM6/5/19
to jenkinsc...@googlegroups.com
Jeremie Bresson created an issue
 
Jenkins / Bug JENKINS-57854
With "Warnings Plugin Native Format" tool, the expected input xml is not consistent with the exported xml
Issue Type: Bug Bug
Assignee: Ulli Hafner
Attachments: Screenshot 2019-06-05 at 06.52.04.png
Components: warnings-ng-plugin
Created: 2019-06-05 06:13
Priority: Minor Minor
Reporter: Jeremie Bresson

Introduced with JENKINS-56510, when selecting "Warnings Plugin Native Format" as "Tool" the "Warning NG Plugins" should import an xml exported by the API:

<jenkins server>/job/<job name>/<build nr>/<tool id>/all/api/xml

The problem is that this API exports the report of issues as:

<reportApi _class="io.jenkins.plugins.analysis.core.restapi.ReportApi">
   <issue>
      <!-- .. -->
   </issue>
   <issue>
      <!-- .. -->
   </issue>
   <size>2</size>
</reportApi>

And the plugin expect "report/issue" as xmlIssueRoot (sort of x-path query) to find the issues.

In other words this can be imported:

<report _class="io.jenkins.plugins.analysis.core.restapi.ReportApi">
   <issue>
      <!-- .. -->
   </issue>
   <issue>
      <!-- .. -->
   </issue>
   <size>2</size>
</report>

The issue is that the root element is called reportApi in the exported xml and report is expected for the import

Tested with version 5.1.0

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

ullrich.hafner@gmail.com (JIRA)

unread,
Jun 5, 2019, 2:51:40 AM6/5/19
to jenkinsc...@googlegroups.com
Ulli Hafner commented on Bug JENKINS-57854
 
Re: With "Warnings Plugin Native Format" tool, the expected input xml is not consistent with the exported xml

Why is this a problem? Are you trying to import something that has been exported by the Jenkins plugin?

ullrich.hafner@gmail.com (JIRA)

unread,
Jun 5, 2019, 2:52:01 AM6/5/19
to jenkinsc...@googlegroups.com

ullrich.hafner@gmail.com (JIRA)

unread,
Jun 17, 2019, 4:45:01 PM6/17/19
to jenkinsc...@googlegroups.com

Ping? I can change it but I'm not sure if this is really a problem for someone...

ullrich.hafner@gmail.com (JIRA)

unread,
Jul 18, 2019, 10:30:03 AM7/18/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages