-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Jenkins 2.332.1
Bitbucket Branch Source Plugin 757.vddedc5f2589a_
Basic Branch Build Strategies Plugin 1.3.2
"Build included regions strategy" plugin is failing with the following exception:
Mar 16, 2022 5:22:05 AM INFO com.igalg.jenkins.plugins.multibranch.buildstrategy.IncludeRegionBranchBuildStrategy isAutomaticBuildIncluded regions: [auth-utils/**] Mar 16, 2022 5:22:05 AM SEVERE com.igalg.jenkins.plugins.multibranch.buildstrategy.IncludeRegionBranchBuildStrategy isAutomaticBuildUnecpected exception org.eclipse.jgit.errors.InvalidObjectIdException: Invalid id: 93488bcd47c1 at org.eclipse.jgit.lib.ObjectId.fromString(ObjectId.java:203) at jenkins.plugins.git.AbstractGitSCMSource$SpecificRevisionBuildChooser.<init>(AbstractGitSCMSource.java:1477) at jenkins.plugins.git.GitSCMBuilder.build(GitSCMBuilder.java:513) at com.cloudbees.jenkins.plugins.bitbucket.BitbucketGitSCMBuilder.build(BitbucketGitSCMBuilder.java:291) at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.build(BitbucketSCMSource.java:958) at com.igalg.jenkins.plugins.multibranch.buildstrategy.IncludeRegionBranchBuildStrategy.isAutomaticBuild(IncludeRegionBranchBuildStrategy.java:84) at jenkins.branch.BranchBuildStrategy.automaticBuild(BranchBuildStrategy.java:260) at jenkins.branch.MultiBranchProject$SCMHeadObserverImpl.isAutomaticBuild(MultiBranchProject.java:2247) at jenkins.branch.MultiBranchProject$SCMHeadObserverImpl.doAutomaticBuilds(MultiBranchProject.java:2198) at jenkins.branch.MultiBranchProject$SCMHeadObserverImpl.observeExisting(MultiBranchProject.java:2024) at jenkins.branch.MultiBranchProject$SCMHeadObserverImpl.observe(MultiBranchProject.java:1984) at jenkins.scm.api.SCMHeadObserver$Wrapped.observe(SCMHeadObserver.java:637) at jenkins.scm.api.SCMHeadEvent$Validated.observe(SCMHeadEvent.java:295) at jenkins.scm.api.trait.SCMSourceRequest.process(SCMSourceRequest.java:357) at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrievePullRequests(BitbucketSCMSource.java:687) at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrieve(BitbucketSCMSource.java:608) at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:373) at jenkins.scm.api.SCMSource.fetch(SCMSource.java:327) at jenkins.branch.MultiBranchProject$SCMEventListenerImpl.processHeadUpdate(MultiBranchProject.java:1585) at jenkins.branch.MultiBranchProject$SCMEventListenerImpl.onSCMHeadEvent(MultiBranchProject.java:1190) at jenkins.scm.api.SCMHeadEvent$DispatcherImpl.fire(SCMHeadEvent.java:246) at jenkins.scm.api.SCMHeadEvent$DispatcherImpl.fire(SCMHeadEvent.java:229) at jenkins.scm.api.SCMEvent$Dispatcher.run(SCMEvent.java:505) at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:67) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829)
It looks like short Git commitid is being passed to org.eclipse.jgit.lib.ObjectId.fromString() method, rather than long 40-characters one.