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

NPE while initializing Git plugin

    Details

    • Similar Issues:

      Description

      Builds using the latest (1.1.6) version of Git plugin fail with:

      FATAL: null
      java.lang.NullPointerException
      	at hudson.plugins.git.GitAPI.setupSubmoduleUrls(GitAPI.java:617)
      	at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1056)
      	at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1020)
      	at hudson.FilePath.act(FilePath.java:757)
      	at hudson.FilePath.act(FilePath.java:739)
      	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1020)
      	at hudson.model.AbstractProject.checkout(AbstractProject.java:1182)
      	at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:521)
      	at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416)
      	at hudson.model.Run.run(Run.java:1362)
      	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:441)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:145)
      

      The same build proceeds fine with the 1.1.4 release.

        Attachments

          Activity

          Hide
          moe Martin Mauch added a comment -

          @Cody Cutrer: Have you found a solution to this problem? We're having exactly the same issue and don't have any clue how to proceed...

          Show
          moe Martin Mauch added a comment - @Cody Cutrer: Have you found a solution to this problem? We're having exactly the same issue and don't have any clue how to proceed...
          Hide
          ccutrer Cody Cutrer added a comment -

          No. Looking at the changelogs for recent releases doesn't seem like this issue has been addressed beyond the gerrit specific fix. It just seems like nobody that works on Jenkins actually uses git submodules because I've seen a few other bugs recently, and they tend to get ignored even when reported.

          Show
          ccutrer Cody Cutrer added a comment - No. Looking at the changelogs for recent releases doesn't seem like this issue has been addressed beyond the gerrit specific fix. It just seems like nobody that works on Jenkins actually uses git submodules because I've seen a few other bugs recently, and they tend to get ignored even when reported.
          Hide
          amurray Adam Murray added a comment -

          We're also having the same problem as Cody Cutrer and Martin Mauch. It looks like using "Trigger/call builds on other projects" with the "pass-through git commit" parameter is just not working right now.

          So it seems like my only option is to not use this parameter, and cross my fingers that my triggered sub-jobs all get a consistent checkout of the repository? I would very much like to have this "pass-through git commit" parameter fixed so I can enforce some consistency in my multi-job workflow.

          Show
          amurray Adam Murray added a comment - We're also having the same problem as Cody Cutrer and Martin Mauch. It looks like using "Trigger/call builds on other projects" with the "pass-through git commit" parameter is just not working right now. So it seems like my only option is to not use this parameter, and cross my fingers that my triggered sub-jobs all get a consistent checkout of the repository? I would very much like to have this "pass-through git commit" parameter fixed so I can enforce some consistency in my multi-job workflow.
          Hide
          amurray Adam Murray added a comment -

          Since I am getting a different exception stack trace in the git plugin, and I'm not using Gerrit, I opened a new issue for the problem I am experiencing: JENKINS-10060

          Show
          amurray Adam Murray added a comment - Since I am getting a different exception stack trace in the git plugin, and I'm not using Gerrit, I opened a new issue for the problem I am experiencing: JENKINS-10060
          Hide
          kohsuke Kohsuke Kawaguchi added a comment -

          As I indicated in JENKINS-10060, I've fixed this toward 1.1.12.

          Show
          kohsuke Kohsuke Kawaguchi added a comment - As I indicated in JENKINS-10060 , I've fixed this toward 1.1.12.

            People

            • Assignee:
              kohsuke Kohsuke Kawaguchi
              Reporter:
              diwakergupta Diwaker Gupta
            • Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: