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

NPE if 'Global Config user.{name,email} Value' are not set


    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • git-plugin
    • None
    • Linux vm86.gsc.wustl.edu 2.6.32-21-server #32-Ubuntu SMP Fri Apr 16 09:17:34 UTC 2010 x86_64 GNU/Linux
      Jenkins v1.411
      Jenkins Git v1.1.8

      If 'Global Config user.name Value' and/or 'Global Config user.email Value' are not set in the Jenkins configuration then the following error occurs when Jenkins Git tries to checkout a repo:

      Started by user anonymous
      Building on master
      Checkout:workspace / /var/lib/jenkins/jobs/1_Genome_1_Poll_for_Changes/workspace - hudson.remoting.LocalChannel@7c6b3d66
      Using strategy: Default
      Last Built Revision: Revision b41bc2430e83c6eb2f1977961868bd716d81834d (origin/master)
      FATAL: null
      	at hudson.plugins.git.GitSCM.getGitConfigNameToUse(GitSCM.java:320)
      	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:787)
      	at hudson.model.AbstractProject.checkout(AbstractProject.java:1181)
      	at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:536)
      	at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:424)
      	at hudson.model.Run.run(Run.java:1374)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:145)

      It seems like these values should be collected from the Git's config:

      $ git config --global -l
      user.name=APipe Tester

      Or at the very least not crash if they are not filled in.

      This issue occurred after a Jenkins deb upgrade and upgrade of plugins.

            abayer Andrew Bayer
            nnutter Nathan Nutter
            0 Vote for this issue
            0 Start watching this issue