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

          Thanks for the fix. I wonder if the release of 7.4.1 is blocked somehow. The update center still lists the broken 7.4 and every user updating will run into this critical issue.

          Andreas Mandel added a comment - Thanks for the fix. I wonder if the release of 7.4.1 is blocked somehow. The update center still lists the broken 7.4 and every user updating will run into this critical issue.

          Basil Crow added a comment -

          The release of https://plugins.jenkins.io/hp-application-automation-tools-plugin/ 7.4.1 apparently did not succeed as the plugin site is listing 7.4. CC hildaboth dbogdan7

          Basil Crow added a comment - The release of https://plugins.jenkins.io/hp-application-automation-tools-plugin/ 7.4.1 apparently did not succeed as the plugin site is listing 7.4. CC hildaboth dbogdan7

          Dorin Bogdan added a comment - - edited

          Hi andreasmandel,

          I'm not sure if / when the plugin site will be updated with beta versions.

          I just forwarded the question to the plugin owner and she told that it was expected to be automatically updated...

          Currently, the most recent is 7.4.2-beta, and the full list is in the Jenkins repository:

          https://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/hp-application-automation-tools-plugin/

          Thank you for understanding.

          CC plescaevelyn 

          Dorin Bogdan added a comment - - edited Hi andreasmandel , I'm not sure if / when the plugin site will be updated with beta versions. I just forwarded the question to the plugin owner and she told that it was expected to be automatically updated... Currently, the most recent is 7.4.2-beta , and the full list is in the Jenkins repository: https://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/hp-application-automation-tools-plugin/ Thank you for understanding. CC plescaevelyn  

          Basil Crow added a comment -

          Ah I see, only a beta version was published. Here is the documentation for experimental plugin releases:

          https://www.jenkins.io/doc/developer/publishing/releasing-experimental-updates/

          Note that very few Jenkins users (a minuscule number) use the Experimental Update Center. The vast majority of Jenkins users will be using the standard update center, which is currently publishing the broken 7.4 version. So I would recommend a non-beta version be released for the benefit of those users.

          Basil Crow added a comment - Ah I see, only a beta version was published. Here is the documentation for experimental plugin releases: https://www.jenkins.io/doc/developer/publishing/releasing-experimental-updates/ Note that very few Jenkins users (a minuscule number) use the Experimental Update Center. The vast majority of Jenkins users will be using the standard update center, which is currently publishing the broken 7.4 version. So I would recommend a non-beta version be released for the benefit of those users.

          Lutz Mader added a comment - - edited

          Hello,
          I upgraded to the new 7.4.2-beta. Seems to me working well, therefore I use the 7.4.2-beta in the production Jenkins (Jenkins 2.346.2 and Java 11.0.15.1+2-LTS-10) again.

          Nice, thanks for all help,
          Lutz

          Appendage:

          09:41:32 [Checks API] No suitable checks publisher found.
          09:41:32 INFO: 'Upload test result to ALM' Post Build Step is being invoked by q-was-alm.
          09:41:32 INFO: 1 test result file found.
          09:41:32 INFO: Start to upload /usd/as98765a/work/jenkins/jobs/Introscope/jobs/agent_java-alm/builds/14/results_junit.xml
          09:41:32 INFO: Start to parse file: /usd/as98765a/work/jenkins/jobs/Introscope/jobs/agent_java-alm/builds/14/results_junit.xml
          09:41:32 Failed to parse file with: com.microfocus.application.automation.tools.results.parser.jenkinsjunit.JenkinsJUnitReportParserImpl
          09:41:32 Failed to parse file with: com.microfocus.application.automation.tools.results.parser.mavensurefire.MavenSureFireReportParserImpl
          09:41:32 Failed to parse file with: com.microfocus.application.automation.tools.results.parser.testngxml.TestNGXmlReportParserImpl
          09:41:33 Failed to parse file with: com.microfocus.application.automation.tools.results.parser.nunit3.NUnit3ReportParserImpl
          09:41:33 Failed to parse file with: com.microfocus.application.automation.tools.results.parser.nunit.NUnitReportParserImpl
          09:41:33 INFO: parse resut file succeed.
          09:41:33 INFO: Start to login to ALM Server.
          09:41:33 Start login to ALM server...
          09:41:33 User q-was-alm unauthorized.
          09:41:33 Got authenticate point:https://qualitycenter.intern:0/qcbin/authentication-point/authenticate
          09:41:33 Authenticate point schema or port is different with server's. Please check with ALM site admin.
          09:41:33 Try to authenticate through: https://qualitycenter.intern/qcbin/authentication-point/authenticate
          09:41:33 Logged in successfully to ALM Server https://qualitycenter.intern/qcbin/ using q-was-alm
          09:41:33 Creating session...
          09:41:33 Session created.
          09:41:33 INFO: Checking test folder...
          09:41:33 INFO: Checking testset folder...
          09:41:33 INFO: Uploading ALM Entities...
          09:41:36 INFO: Uploaded /usd/as98765a/work/jenkins/jobs/Introscope/jobs/agent_java-alm/builds/14/results_junit.xml.
          09:41:36 INFO: 'Upload test result to ALM' Completed.
          09:41:36 [lockable-resources] released lock on [INTROSCOPE_ALM, INTROSCOPE_JAVA]
          09:41:36 Finished: SUCCESS
          

          Lutz Mader added a comment - - edited Hello, I upgraded to the new 7.4.2-beta. Seems to me working well, therefore I use the 7.4.2-beta in the production Jenkins (Jenkins 2.346.2 and Java 11.0.15.1+2-LTS-10) again. Nice, thanks for all help, Lutz Appendage: 09:41:32 [Checks API] No suitable checks publisher found. 09:41:32 INFO: 'Upload test result to ALM' Post Build Step is being invoked by q-was-alm. 09:41:32 INFO: 1 test result file found. 09:41:32 INFO: Start to upload /usd/as98765a/work/jenkins/jobs/Introscope/jobs/agent_java-alm/builds/14/results_junit.xml 09:41:32 INFO: Start to parse file: /usd/as98765a/work/jenkins/jobs/Introscope/jobs/agent_java-alm/builds/14/results_junit.xml 09:41:32 Failed to parse file with: com.microfocus.application.automation.tools.results.parser.jenkinsjunit.JenkinsJUnitReportParserImpl 09:41:32 Failed to parse file with: com.microfocus.application.automation.tools.results.parser.mavensurefire.MavenSureFireReportParserImpl 09:41:32 Failed to parse file with: com.microfocus.application.automation.tools.results.parser.testngxml.TestNGXmlReportParserImpl 09:41:33 Failed to parse file with: com.microfocus.application.automation.tools.results.parser.nunit3.NUnit3ReportParserImpl 09:41:33 Failed to parse file with: com.microfocus.application.automation.tools.results.parser.nunit.NUnitReportParserImpl 09:41:33 INFO: parse resut file succeed. 09:41:33 INFO: Start to login to ALM Server. 09:41:33 Start login to ALM server... 09:41:33 User q-was-alm unauthorized. 09:41:33 Got authenticate point:https://qualitycenter.intern:0/qcbin/authentication-point/authenticate 09:41:33 Authenticate point schema or port is different with server's. Please check with ALM site admin. 09:41:33 Try to authenticate through: https://qualitycenter.intern/qcbin/authentication-point/authenticate 09:41:33 Logged in successfully to ALM Server https://qualitycenter.intern/qcbin/ using q-was-alm 09:41:33 Creating session... 09:41:33 Session created. 09:41:33 INFO: Checking test folder... 09:41:33 INFO: Checking testset folder... 09:41:33 INFO: Uploading ALM Entities... 09:41:36 INFO: Uploaded /usd/as98765a/work/jenkins/jobs/Introscope/jobs/agent_java-alm/builds/14/results_junit.xml. 09:41:36 INFO: 'Upload test result to ALM' Completed. 09:41:36 [lockable-resources] released lock on [INTROSCOPE_ALM, INTROSCOPE_JAVA] 09:41:36 Finished: SUCCESS

          Evelyn Plesca added a comment - - edited

          Hello,

          I have released version 7.4.3 as an official release.
          I am waiting for the plugin site (https://plugins.jenkins.io/hp-application-automation-tools-plugin/#releases) to be automatically updated in a few hours.

          Until then, you can find the release here:
          https://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/hp-application-automation-tools-plugin/

          Evelyn Plesca added a comment - - edited Hello, I have released version 7.4.3 as an official release. I am waiting for the plugin site ( https://plugins.jenkins.io/hp-application-automation-tools-plugin/#releases) to be automatically updated in a few hours. Until then, you can find the release here: https://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/hp-application-automation-tools-plugin/

          Lutz Mader added a comment -

          Hello Evelyn Plesca,
          nice to know.
          > I have released version 7.4.3 as an official release.

          I will switch to the new 7.4.3 plugin tomorrow,
          thanks for all help.
          Lutz

          Lutz Mader added a comment - Hello Evelyn Plesca, nice to know. > I have released version 7.4.3 as an official release. I will switch to the new 7.4.3 plugin tomorrow, thanks for all help. Lutz

          Dorin Bogdan added a comment -

          The site was updated https://plugins.jenkins.io/hp-application-automation-tools-plugin/#releases.

          If you still don't see 7.4.3 then please clear the browser cache and reload.

          Dorin Bogdan added a comment - The site was updated https://plugins.jenkins.io/hp-application-automation-tools-plugin/#releases. If you still don't see 7.4.3 then please clear the browser cache and reload.

          Lutz Mader added a comment -

          Hello,
          thanks for your help, I/we migrated to the new version.

          Micro Focus Application Automation Tools Version 7.4.3
          Jenkins 2.346.2
          Java 11.0.15.1+2-LTS-10

          It seems to me working well,
          have a nice weekend,
          Lutz

          Lutz Mader added a comment - Hello, thanks for your help, I/we migrated to the new version. Micro Focus Application Automation Tools Version 7.4.3 Jenkins 2.346.2 Java 11.0.15.1+2-LTS-10 It seems to me working well, have a nice weekend, Lutz

          Lutz Mader added a comment - - edited

          Hello,
          the new version seems to working well,
          I close the ticket.

          Thanks for all help,
          have a nice weekend,
          Lutz

          Lutz Mader added a comment - - edited Hello, the new version seems to working well, I close the ticket. Thanks for all help, have a nice weekend, Lutz

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

              Created:
              Updated:
              Resolved: