-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
Jenkins 2.263.1
Branch API 2.6.2
Forensics API Plugin 0.8.0
Git Forensics Plugin 0.8.0
Bitbucket Branch Source Plugin 2.9.6
I got this exception when running discoverGitReferenceBuild defaultBranch: 'release%2F1.41' on another branch of a multibranch project whose "release/1.41" branch had plenty of builds but had never run discoverGitReferenceBuild nor discoverReferenceBuild. I think discoverGitReferenceBuild should handle this situation as if no builds contain matching commits, rather than blow up with an exception.
java.lang.NullPointerException at io.jenkins.plugins.forensics.git.reference.GitCommitsRecord.getReferencePoint(GitCommitsRecord.java:220) at io.jenkins.plugins.forensics.git.reference.GitReferenceRecorder.find(GitReferenceRecorder.java:86) at io.jenkins.plugins.forensics.reference.ReferenceRecorder.findReferenceBuild(ReferenceRecorder.java:106) at io.jenkins.plugins.forensics.reference.SimpleReferenceRecorder.perform(SimpleReferenceRecorder.java:131) at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123) at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:99) at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:69) at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47) at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$$Lambda$454/000000000000000000.run(Unknown Source) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
(The %2F in 'release%2F1.41' was an attempt to work around JENKINS-64544.)
- links to