-
Bug
-
Resolution: Fixed
-
Major
-
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 java.lang.NullPointerException 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 user.email=apipe-tester@genome.wustl.edu
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.
I'm not able to replicate this in my test setup - could you attach your top-level Jenkins config.xml, the job's config.xml, and, if it exists, the top-level hudson.plugins.git.GitSCM.xml? Thanks.