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

Getting testing result from non default junit mojo failed build.

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • maven-plugin

      We are using non default plugin which generates surefire reports. During archiving test result throw exception NullPointerException.

      This is a regression since 1.432 everythins is working well.

      Log:
      mojoSucceeded com.hp.maven.plugins:ddm-jython-plugin:1.0-SNAPSHOT(default)
      16:46:59 [JENKINS] Recording test results
      ....
      Waiting for Jenkins to finish collecting data
      16:47:48 mavenExecutionResult exceptions not empty
      16:47:48 message : Internal error: java.lang.NullPointerException
      16:47:48 cause : null
      16:47:48 Stack trace :
      16:47:48 org.apache.maven.InternalErrorException: Internal error: java.lang.NullPointerException
      16:47:48 at org.apache.maven.lifecycle.internal.BuilderCommon.handleBuildError(BuilderCommon.java:128)
      16:47:48 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:95)
      16:47:48 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
      16:47:48 at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
      16:47:48 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
      16:47:48 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
      16:47:48 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
      16:47:48 at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)
      16:47:48 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      16:47:48 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      16:47:48 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      16:47:48 at java.lang.reflect.Method.invoke(Method.java:597)
      16:47:48 at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
      16:47:48 at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
      16:47:48 at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158)
      16:47:48 at hudson.maven.Maven3Builder.call(Maven3Builder.java:100)
      16:47:48 at hudson.maven.Maven3Builder.call(Maven3Builder.java:66)
      16:47:48 at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      16:47:48 at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      16:47:48 at hudson.remoting.Request$2.run(Request.java:326)
      16:47:48 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      16:47:48 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      16:47:48 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      16:47:48 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      16:47:48 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      16:47:48 at java.lang.Thread.run(Thread.java:662)
      16:47:48 Caused by: java.lang.NullPointerException
      16:47:48 at hudson.maven.reporters.TestMojo.getReportFiles(TestMojo.java:104)
      16:47:48 at hudson.maven.reporters.SurefireArchiver.postExecute(SurefireArchiver.java:125)
      16:47:48 at hudson.maven.Maven3Builder$MavenExecutionListener.recordMojoEnded(Maven3Builder.java:443)
      16:47:48 at hudson.maven.Maven3Builder$MavenExecutionListener.mojoSucceeded(Maven3Builder.java:425)
      16:47:48 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:87)
      16:47:48 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42)
      16:47:48 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:228)
      16:47:48 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      16:47:48 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      16:47:48 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
      16:47:48 ... 24 more
      16:47:48 channel stopped

          [JENKINS-16573] Getting testing result from non default junit mojo failed build.

          Code changed in jenkins
          User: Vladimir Kravets
          Path:
          maven-plugin/src/main/java/hudson/maven/reporters/TestMojo.java
          http://jenkins-ci.org/commit/jenkins/c846f7cf40a9101a1a6bc04bbb5ff09316f533dd
          Log:
          JENKINS-16573 Getting testing result from non default junit mojo failed build.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Vladimir Kravets Path: maven-plugin/src/main/java/hudson/maven/reporters/TestMojo.java http://jenkins-ci.org/commit/jenkins/c846f7cf40a9101a1a6bc04bbb5ff09316f533dd Log: JENKINS-16573 Getting testing result from non default junit mojo failed build.

          Code changed in jenkins
          User: Christoph Kutzinski
          Path:
          maven-plugin/src/main/java/hudson/maven/reporters/TestMojo.java
          http://jenkins-ci.org/commit/jenkins/38d8cdd764fafb4450f42dec49f0dddd1c585dc2
          Log:
          Merge pull request #686 from vkravets/JENKINS-16573

          JENKINS-16573 Getting testing result from non default test mojo failed build.

          Compare: https://github.com/jenkinsci/jenkins/compare/e11c01cde7dc...38d8cdd764fa


          You received this message because you are subscribed to the Google Groups "Jenkins Commits" group.
          To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com.
          For more options, visit https://groups.google.com/groups/opt_out.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: maven-plugin/src/main/java/hudson/maven/reporters/TestMojo.java http://jenkins-ci.org/commit/jenkins/38d8cdd764fafb4450f42dec49f0dddd1c585dc2 Log: Merge pull request #686 from vkravets/ JENKINS-16573 JENKINS-16573 Getting testing result from non default test mojo failed build. Compare: https://github.com/jenkinsci/jenkins/compare/e11c01cde7dc...38d8cdd764fa – You received this message because you are subscribed to the Google Groups "Jenkins Commits" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out .

          Code changed in jenkins
          User: Christoph Kutzinski
          Path:
          changelog.html
          maven-plugin/src/main/java/hudson/maven/MojoInfo.java
          maven-plugin/src/main/java/hudson/maven/reporters/TestMojo.java
          maven-plugin/src/test/java/hudson/maven/reporters/TestMojoTest.java
          http://jenkins-ci.org/commit/jenkins/bdd8580882295177900855572e41ce891ab9cfaf
          Log:
          Regression test and changelog for JENKINS-16573


          You received this message because you are subscribed to the Google Groups "Jenkins Commits" group.
          To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com.
          For more options, visit https://groups.google.com/groups/opt_out.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: changelog.html maven-plugin/src/main/java/hudson/maven/MojoInfo.java maven-plugin/src/main/java/hudson/maven/reporters/TestMojo.java maven-plugin/src/test/java/hudson/maven/reporters/TestMojoTest.java http://jenkins-ci.org/commit/jenkins/bdd8580882295177900855572e41ce891ab9cfaf Log: Regression test and changelog for JENKINS-16573 – You received this message because you are subscribed to the Google Groups "Jenkins Commits" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out .

          dogfood added a comment -

          Integrated in jenkins_main_trunk #2231
          Regression test and changelog for JENKINS-16573 (Revision bdd8580882295177900855572e41ce891ab9cfaf)

          Result = SUCCESS
          Christoph Kutzinski : bdd8580882295177900855572e41ce891ab9cfaf
          Files :

          • maven-plugin/src/main/java/hudson/maven/MojoInfo.java
          • maven-plugin/src/test/java/hudson/maven/reporters/TestMojoTest.java
          • maven-plugin/src/main/java/hudson/maven/reporters/TestMojo.java
          • changelog.html

          dogfood added a comment - Integrated in jenkins_main_trunk #2231 Regression test and changelog for JENKINS-16573 (Revision bdd8580882295177900855572e41ce891ab9cfaf) Result = SUCCESS Christoph Kutzinski : bdd8580882295177900855572e41ce891ab9cfaf Files : maven-plugin/src/main/java/hudson/maven/MojoInfo.java maven-plugin/src/test/java/hudson/maven/reporters/TestMojoTest.java maven-plugin/src/main/java/hudson/maven/reporters/TestMojo.java changelog.html

          This is failing bad for us and the proposed fix at least seems to fix the symptoms. When can it be merged and released?

          Henrik Johansson added a comment - This is failing bad for us and the proposed fix at least seems to fix the symptoms. When can it be merged and released?

          kutzi added a comment -

          It has been released today

          kutzi added a comment - It has been released today

          Excellent! Got it, will test soon. Thanks!

          Henrik Johansson added a comment - Excellent! Got it, will test soon. Thanks!

          Confirming the error is gone. Thanks!

          Henrik Johansson added a comment - Confirming the error is gone. Thanks!

          Code changed in jenkins
          User: Vladimir Kravets
          Path:
          src/main/java/hudson/maven/reporters/TestMojo.java
          http://jenkins-ci.org/commit/maven-plugin/94fb9bb91e264f6ffdec72eb8c6e4a8a4dca8f4c
          Log:
          JENKINS-16573 Getting testing result from non default junit mojo failed build.

          Originally-Committed-As: c846f7cf40a9101a1a6bc04bbb5ff09316f533dd

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Vladimir Kravets Path: src/main/java/hudson/maven/reporters/TestMojo.java http://jenkins-ci.org/commit/maven-plugin/94fb9bb91e264f6ffdec72eb8c6e4a8a4dca8f4c Log: JENKINS-16573 Getting testing result from non default junit mojo failed build. Originally-Committed-As: c846f7cf40a9101a1a6bc04bbb5ff09316f533dd

          Code changed in jenkins
          User: Christoph Kutzinski
          Path:
          src/main/java/hudson/maven/MojoInfo.java
          src/main/java/hudson/maven/reporters/TestMojo.java
          src/test/java/hudson/maven/reporters/TestMojoTest.java
          http://jenkins-ci.org/commit/maven-plugin/b4767299887a9369de59a2393555c886e59bb041
          Log:
          Regression test and changelog for JENKINS-16573
          Originally-Committed-As: bdd8580882295177900855572e41ce891ab9cfaf

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: src/main/java/hudson/maven/MojoInfo.java src/main/java/hudson/maven/reporters/TestMojo.java src/test/java/hudson/maven/reporters/TestMojoTest.java http://jenkins-ci.org/commit/maven-plugin/b4767299887a9369de59a2393555c886e59bb041 Log: Regression test and changelog for JENKINS-16573 Originally-Committed-As: bdd8580882295177900855572e41ce891ab9cfaf

            Unassigned Unassigned
            vkravets Vladimir Kravets
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: