jenkinsci / jenkinsci/git-plugin

[JENKINS-31586] NPE When using submodules extension

Open
#2,760 1 comment 0 reactions 0 assignees View on GitHub
component:git-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
694
Forks
1.1k
Avg merge
1h 29m
Merged PRs (30d)
3

Description

Seen this when submodules are selected. I think this happens when the build settings change and we get a first time build.

12:51:26 First time build. Skipping changelog.

12:51:26 FATAL: null

12:51:26 java.lang.NullPointerException

12:51:26 at hudson.plugins.git.extensions.impl.SubmoduleOption.onCheckoutCompleted(SubmoduleOption.java:82)

12:51:26 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1074)

12:51:26 at hudson.scm.SCM.checkout(SCM.java:485)

12:51:26 at hudson.model.AbstractProject.checkout(AbstractProject.java:1276)

12:51:26 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)

12:51:26 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)

12:51:26 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)

12:51:26 at hudson.model.Run.execute(Run.java:1738)

12:51:26 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)

12:51:26 at hudson.model.ResourceController.execute(ResourceController.java:98)

12:51:26 at hudson.model.Executor.run(Executor.java:410)

---
Originally reported by mmitche, imported from: NPE When using submodules extension


  • status: Open
  • priority: Minor
  • component(s): git-plugin
  • resolution: Unresolved
  • votes: 1
  • watchers: 4
  • imported: 2025-12-02

Raw content of original issue

Seen this when submodules are selected. I think this happens when the build settings change and we get a first time build.

12:51:26 First time build. Skipping changelog.
12:51:26 FATAL: null
12:51:26 java.lang.NullPointerException
12:51:26 at hudson.plugins.git.extensions.impl.SubmoduleOption.onCheckoutCompleted(SubmoduleOption.java:82)
12:51:26 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1074)
12:51:26 at hudson.scm.SCM.checkout(SCM.java:485)
12:51:26 at hudson.model.AbstractProject.checkout(AbstractProject.java:1276)
12:51:26 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
12:51:26 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
12:51:26 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
12:51:26 at hudson.model.Run.execute(Run.java:1738)
12:51:26 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
12:51:26 at hudson.model.ResourceController.execute(ResourceController.java:98)
12:51:26 at hudson.model.Executor.run(Executor.java:410)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.