Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-68228

Upload test result to ALM failed to parse file with Java 11

      Hello,
      the ALM Plugin should support Java 8 and above, but after I switch to Java 11 the JUnit result file can not parsed by the plugin.

      15:33:37 [Checks API] No suitable checks publisher found.
      15:33:37 INFO: 'Upload test result to ALM' Post Build Step is being invoked by q-was-alm.
      15:33:37 INFO: 1 test result file found.
      15:33:37 INFO: Start to upload /usd/as97385a/work/jenkins/jobs/Introscope/jobs/agent_java-alm/builds/5/results_junit.xml
      15:33:37 INFO: Start to parse file: /usd/as97385a/work/jenkins/jobs/Introscope/jobs/agent_java-alm/builds/5/results_junit.xml
      15:33:37 Failed to parse file with: com.microfocus.application.automation.tools.results.parser.jenkinsjunit.JenkinsJUnitReportParserImpl
      15:33:37 Failed to parse file with: com.microfocus.application.automation.tools.results.parser.mavensurefire.MavenSureFireReportParserImpl
      15:33:37 Failed to parse file with: com.microfocus.application.automation.tools.results.parser.testngxml.TestNGXmlReportParserImpl
      15:33:38 Failed to parse file with: com.microfocus.application.automation.tools.results.parser.nunit3.NUnit3ReportParserImpl
      15:33:38 Failed to parse file with: com.microfocus.application.automation.tools.results.parser.nunit.NUnitReportParserImpl
      15:33:38 Failed to parse file with: com.microfocus.application.automation.tools.results.parser.antjunit.AntJUnitReportParserImpl
      15:33:38 ERR: There's exception while uploading /usd/as97385a/work/jenkins/jobs/Introscope/jobs/agent_java-alm/builds/5/results_junit.xml. Failed to parse file: /usd/as97385a/work/jenkins/jobs/Introscope/jobs/agent_java-alm/builds/5/results_junit.xml
      15:33:38 INFO: 'Upload test result to ALM' Completed.
      15:33:38 Build step 'Upload test result to ALM' changed build result to UNSTABLE
      15:33:38 [lockable-resources] released lock on [INTROSCOPE_ALM, INTROSCOPE_JAVA]
      15:33:38 Finished: UNSTABLE
      

      Based on Java 8 the JUnit result file was read by the Antjunit report parser.

      Any idea what is going wrong.

      I do all tests based on Jenkins 2.319.2, 2.319.3 and 2.332.2
      and Micro Focus Application Automation Tools 7.2 and 7.3

      The import works well in a java version "1.8.0_321" environment but
      does not with java version "11.0.14" 2022-01-18 LTS

      With regards,
      Lutz

          [JENKINS-68228] Upload test result to ALM failed to parse file with Java 11

          Lutz Mader created issue -
          Basil Crow made changes -
          Epic Link New: JENKINS-68446 [ 215257 ]
          Hilda made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]
          Lutz Mader made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]
          Dorin Bogdan made changes -
          Assignee Original: Paul-Adrian Tofan [ ptofan ] New: Dorin Bogdan [ dbogdan7 ]
          Dorin Bogdan made changes -
          Assignee Original: Dorin Bogdan [ dbogdan7 ] New: Hilda [ hildaboth ]
          Hilda made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Reopened [ 4 ] New: Fixed but Unreleased [ 10203 ]
          Hilda made changes -
          Status Original: Fixed but Unreleased [ 10203 ] New: Resolved [ 5 ]
          Dorin Bogdan made changes -
          Attachment New: image-2022-07-29-10-00-43-795.png [ 58597 ]
          Lutz Mader made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            hildaboth Hilda
            lutzmad Lutz Mader
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: