• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • m2release-plugin
    • None
    • Linux, Hudson 1.364, Hudson Maven Release Plug-in Plug-in 0.5.0

      During project release following errors has occurred. See log below. Both addresses http://coderepo/svn/main/ and http://10.9.172.66/svn/main represents the same repository.

      .....
      [INFO] Unable to tag SCM
      Provider message:
      The svn tag command failed.
      Command output:
      svn: Source and dest appear not to be in the same repository (src: 'http://coderepo/svn/main/country_product4/trunk/mt-vms'; dst: 'http://10.9.172.66/svn/main/country_product4/tags/com.telco.product.country.vms/mt-vms-main-0.1.1')

      [INFO] ------------------------------------------------------------------------
      [INFO] For more information, run Maven with the -e switch
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 1 minute 26 seconds
      [INFO] Finished at: Wed Jun 30 14:02:24 CEST 2010
      [INFO] Final Memory: 16M/508M
      [INFO] ------------------------------------------------------------------------
      channel stopped
      ERROR: Processing failed due to a bug in the code. Please report this to users@hudson.dev.java.net
      java.lang.NullPointerException
      at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper.getReleaseVersion(M2ReleaseBuildWrapper.java:345)
      at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper.access$200(M2ReleaseBuildWrapper.java:74)
      at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper$2.tearDown(M2ReleaseBuildWrapper.java:185)
      at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:493)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416)
      at hudson.model.Run.run(Run.java:1257)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:306)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:127)
      project=hudson.maven.MavenModuleSet@c6509e[mt-vms]
      project.getModules()=[hudson.maven.MavenModule@1d9626b[mt-vms/com.telco.product.country.vms:mt-vms-application-config], hudson.maven.MavenModule@cc87c1[mt-vms/com.telco.product.country.vms:mt-vms-decryption-tool], hudson.maven.MavenModule@1e4b53d[mt-vms/com.telco.product.country.vms:mt-vms-gui], hudson.maven.MavenModule@36ef21[mt-vms/com.telco.product.country.vms:mt-vms-gui-management], hudson.maven.MavenModule@8d9b22[mt-vms/com.telco.product.country.vms:mt-vms-main], hudson.maven.MavenModule@c3f750[mt-vms/com.telco.product.country.vms:mt-vms-model-impl-ejb3], hudson.maven.MavenModule@1a1d5cb[mt-vms/com.telco.product.country.vms:mt-vms-ws-impl-ejb3]]
      project.getRootModule()=hudson.maven.MavenModule@8d9b22[mt-vms/com.telco.product.country.vms:mt-vms-main]
      FATAL: null
      java.lang.NullPointerException
      at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper.getReleaseVersion(M2ReleaseBuildWrapper.java:345)
      at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper.access$200(M2ReleaseBuildWrapper.java:74)
      at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper$2.tearDown(M2ReleaseBuildWrapper.java:185)
      at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:493)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416)
      at hudson.model.Run.run(Run.java:1257)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:306)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:127)

          [JENKINS-6887] NPE during release.

          gregan added a comment -

          I'm using ...
          <artifactId>maven-release-plugin</artifactId>
          <version>2.0</version>

          Hudson ver. 1.364
          Hudson Maven Release Plug-in Plug-in 0.5.0

          The build seems successful. The tag was created, the pom committed to svn, and the artifact deployed successfully to Nexus. Even though it says BUILD SUCCESSFUL, the build is red.

          [INFO] [HUDSON] Archiving e:\hudson\HOME\jobs\com.citrix.ws.toolkit.cache.domain-trunk\workspace\trunk\pom.xml to e:\hudson\HOME\jobs\com.citrix.ws.toolkit.cache.domain-trunk\modules\com.citrix.ws.toolkit.cache$domain\builds\2010-06-30_12-22-03\archive\com.citrix.ws.toolkit.cache\domain\1.1-SNAPSHOT\pom.xmlCleaning up after release...
          
          [INFO] ------------------------------------------------------------------------
          [INFO] BUILD SUCCESSFUL
          [INFO] ------------------------------------------------------------------------
          [INFO] Total time: 32 seconds
          [INFO] Finished at: Wed Jun 30 12:22:37 EDT 2010
          [INFO] Final Memory: 11M/19M
          [INFO] ------------------------------------------------------------------------
          channel stopped
          ERROR: Processing failed due to a bug in the code. Please report this to users@hudson.dev.java.net
          java.lang.NullPointerException
          	at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper.getReleaseVersion(M2ReleaseBuildWrapper.java:345)
          	at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper.access$200(M2ReleaseBuildWrapper.java:74)
          	at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper$2.tearDown(M2ReleaseBuildWrapper.java:185)
          	at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:493)
          	at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416)
          	at hudson.model.Run.run(Run.java:1257)
          	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:306)
          	at hudson.model.ResourceController.execute(ResourceController.java:88)
          	at hudson.model.Executor.run(Executor.java:127)
          project=hudson.maven.MavenModuleSet@1ff4999[com.citrix.ws.toolkit.cache.domain-trunk]
          project.getModules()=[hudson.maven.MavenModule@149f754[com.citrix.ws.toolkit.cache.domain-trunk/com.citrix.ws.toolkit.cache:domain]]
          project.getRootModule()=hudson.maven.MavenModule@149f754[com.citrix.ws.toolkit.cache.domain-trunk/com.citrix.ws.toolkit.cache:domain]
          FATAL: null
          

          gregan added a comment - I'm using ... <artifactId>maven-release-plugin</artifactId> <version>2.0</version> Hudson ver. 1.364 Hudson Maven Release Plug-in Plug-in 0.5.0 The build seems successful. The tag was created, the pom committed to svn, and the artifact deployed successfully to Nexus. Even though it says BUILD SUCCESSFUL, the build is red. [INFO] [HUDSON] Archiving e:\hudson\HOME\jobs\com.citrix.ws.toolkit.cache.domain-trunk\workspace\trunk\pom.xml to e:\hudson\HOME\jobs\com.citrix.ws.toolkit.cache.domain-trunk\modules\com.citrix.ws.toolkit.cache$domain\builds\2010-06-30_12-22-03\archive\com.citrix.ws.toolkit.cache\domain\1.1-SNAPSHOT\pom.xmlCleaning up after release... [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 32 seconds [INFO] Finished at: Wed Jun 30 12:22:37 EDT 2010 [INFO] Final Memory: 11M/19M [INFO] ------------------------------------------------------------------------ channel stopped ERROR: Processing failed due to a bug in the code. Please report this to users@hudson.dev.java.net java.lang.NullPointerException at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper.getReleaseVersion(M2ReleaseBuildWrapper.java:345) at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper.access$200(M2ReleaseBuildWrapper.java:74) at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper$2.tearDown(M2ReleaseBuildWrapper.java:185) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:493) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416) at hudson.model.Run.run(Run.java:1257) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:306) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:127) project=hudson.maven.MavenModuleSet@1ff4999[com.citrix.ws.toolkit.cache.domain-trunk] project.getModules()=[hudson.maven.MavenModule@149f754[com.citrix.ws.toolkit.cache.domain-trunk/com.citrix.ws.toolkit.cache:domain]] project.getRootModule()=hudson.maven.MavenModule@149f754[com.citrix.ws.toolkit.cache.domain-trunk/com.citrix.ws.toolkit.cache:domain] FATAL: null

          James Nord added a comment -

          The SCM information in the POM should match what you have told Hudson the project is.
          That is probably the cause of your SCM error.

          I'm more concerned with the n.p.e
          How are you specifying the version?
          once for all modules?
          for each module?
          let maven decide?

          I don't suppose you could attach the start of the build log (with the mvn ... arguments in it?)

          James Nord added a comment - The SCM information in the POM should match what you have told Hudson the project is. That is probably the cause of your SCM error. I'm more concerned with the n.p.e How are you specifying the version? once for all modules? for each module? let maven decide? I don't suppose you could attach the start of the build log (with the mvn ... arguments in it?)

          gregan added a comment -

          I cannot speak for pkania, but I don't have any SCM errors. My tags are created, and the artifacts are successfully deployed to Nexus. Everything looks fine except for the NPE at the end.

          I've attached the full log from my build.

          gregan added a comment - I cannot speak for pkania, but I don't have any SCM errors. My tags are created, and the artifacts are successfully deployed to Nexus. Everything looks fine except for the NPE at the end. I've attached the full log from my build.

          Code changed in hudson
          User: : teilo
          Path:
          trunk/hudson/plugins/m2release/plugin/src/main/java/org/jvnet/hudson/plugins/m2release/M2ReleaseBuildWrapper.java
          http://jenkins-ci.org/commit/32400
          Log:
          FIXED JENKINS-6887 If maven is auto versioning the release then versions is null.

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : teilo Path: trunk/hudson/plugins/m2release/plugin/src/main/java/org/jvnet/hudson/plugins/m2release/M2ReleaseBuildWrapper.java http://jenkins-ci.org/commit/32400 Log: FIXED JENKINS-6887 If maven is auto versioning the release then versions is null.

            Unassigned Unassigned
            pkania pkania
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: