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

When maven_home isn't set an error about a bug in the code occurs

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: maven-plugin
    • Labels:
      None
    • Environment:
      centos5 jenkins.war 1.537
    • Similar Issues:

      Description

      The error implies there is a problem with jenkins when it should just indicate the configuration of the job isn't complete. Something similar might happen if java_home isn't set.

        Attachments

          Activity

          willpughe William Pughe created issue -
          willpughe William Pughe made changes -
          Field Original Value New Value
          Priority Major [ 3 ] Minor [ 4 ]
          Hide
          kutzi kutzi added a comment -

          A Jenkins build of code that builds from the command line and in other Jenkins instances produced:

          Checking out Revision 3f7b2aebae0b87940b806423bb5d55e634e93a3b (origin/master)
          First time build. Skipping changelog.
          ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
          java.lang.NullPointerException
          at java.io.File.<init>(File.java:277)
          at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:58)
          at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:41)
          at hudson.FilePath.act(FilePath.java:1004)
          at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:605)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:562)
          at hudson.model.Run.execute(Run.java:1665)
          at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:507)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:230)
          project=hudson.maven.MavenModuleSet@66f11134[first]
          project.getModules()=[]
          project.getRootModule()=null
          FATAL: null
          java.lang.NullPointerException
          at java.io.File.<init>(File.java:277)
          at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:58)
          at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:41)
          at hudson.FilePath.act(FilePath.java:1004)
          at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:605)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:562)
          at hudson.model.Run.execute(Run.java:1665)
          at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:507)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:230)

          Show
          kutzi kutzi added a comment - A Jenkins build of code that builds from the command line and in other Jenkins instances produced: Checking out Revision 3f7b2aebae0b87940b806423bb5d55e634e93a3b (origin/master) First time build. Skipping changelog. ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com java.lang.NullPointerException at java.io.File.<init>(File.java:277) at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:58) at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:41) at hudson.FilePath.act(FilePath.java:1004) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:605) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:562) at hudson.model.Run.execute(Run.java:1665) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:507) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230) project=hudson.maven.MavenModuleSet@66f11134 [first] project.getModules()=[] project.getRootModule()=null FATAL: null java.lang.NullPointerException at java.io.File.<init>(File.java:277) at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:58) at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:41) at hudson.FilePath.act(FilePath.java:1004) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:605) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:562) at hudson.model.Run.execute(Run.java:1665) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:507) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230)
          kutzi kutzi made changes -
          Assignee kutzi [ kutzi ]
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Christoph Kutzinski
          Path:
          src/main/java/hudson/maven/MavenVersionCallable.java
          http://jenkins-ci.org/commit/maven-plugin/e6849a7ccec07f67ed8d5c8760ef3f7166af66cf
          Log:
          [FIXED JENKINS-20385] provide better error message if 'home' of Maven installation isn't set

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: src/main/java/hudson/maven/MavenVersionCallable.java http://jenkins-ci.org/commit/maven-plugin/e6849a7ccec07f67ed8d5c8760ef3f7166af66cf Log: [FIXED JENKINS-20385] provide better error message if 'home' of Maven installation isn't set
          scm_issue_link SCM/JIRA link daemon made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          ircbot Jenkins IRC Bot made changes -
          Component/s maven-plugin [ 16033 ]
          Component/s maven2 [ 15487 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 151909 ] JNJira + In-Review [ 194138 ]

            People

            • Assignee:
              kutzi kutzi
              Reporter:
              willpughe William Pughe
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: