-
Bug
-
Resolution: Fixed
-
Critical
-
* {{jenkins}}: {{1.652}}
* {{git-plugin}}: {{2.4.2}}
* {{git-client-plugin}}: {{1.19.6}}
the latest git + git-client combination that worked is:
plugin | version |
---|---|
git | 2.4.1 |
git-client | 1.19.2 |
I have upgraded from the above combination to 2.4.2 + 1.19.6, and then I've started experiencing the following problem for pull requests that had a "catchup" (one or more merges FROM destination branch before the pull request):
20:22:31 java.io.IOException: Failed to parse changelog 20:22:31 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:625) 20:22:31 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) 20:22:31 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) 20:22:31 at hudson.model.Run.execute(Run.java:1738) 20:22:31 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 20:22:31 at hudson.model.ResourceController.execute(ResourceController.java:98) 20:22:31 at hudson.model.Executor.run(Executor.java:410) 20:22:31 Caused by: java.lang.NullPointerException 20:22:31 at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:187) 20:22:31 at com.google.jenkins.plugins.metadata.scm.SourceMetadata.<init>(SourceMetadata.java:62) 20:22:31 at com.google.jenkins.plugins.metadata.scm.SourceMetadataExtractor$FromGitBuildActions.getSourceMetadata(SourceMetadataExtractor.java:242) 20:22:31 at com.google.jenkins.plugins.metadata.scm.SourceMetadataExtractor$FromBuildActions.extract(SourceMetadataExtractor.java:139) 20:22:31 at com.google.jenkins.plugins.metadata.scm.SourceMetadataExtractor.extract(SourceMetadataExtractor.java:101) 20:22:31 at com.google.jenkins.plugins.metadata.scm.SourceMetadataBuildListener.onChangeLogParsed(SourceMetadataBuildListener.java:50) 20:22:31 at hudson.model.listeners.SCMListener.onChangeLogParsed(SCMListener.java:120) 20:22:31 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:623) 20:22:31 ... 6 more
- duplicates
-
JENKINS-42580 With 'HP Application Automation Tools' v5.1 installed running a pipeline from script stored in Perforce results in NPE
-
- Fixed but Unreleased
-
The stack trace seems to indicate that a null pointer exception is happening in the google-source-plugin. It does not seem willing to accept that sometimes the value of branch may be null.
I don't know what would have changed between the previous plugin versions and the new plugin versions which would cause that. Can you provide more information about your configuration and the job which is showing that null pointer exception? As far as I can tell, the google source plugin has not changed since its original 0.1 release in 2014, so this must be due to one of the changes in either the git plugin or the git client plugin.
I don't understand what you mean by a "pull request that has a catch-up". Can you explain further which source control system you're using (github, bitbucket, gitlab, something else) and how the pull request is represented which is causing the null pointer exception?