-
Bug
-
Resolution: Unresolved
-
Blocker
-
Jenkins 2.73.3, cloudbees-bitbucket-branch-source 2.2.7
Multibranch Plugin errors out on getting branches if a pull request with no commits exists in project
Checking PR-redactedXXX from redacted/redacted and branch redacted
ERROR: [Fri Dec 15 09:57:51 EST 2017] Could not fetch branches from source 6c503aea-13f5-49ba-8bd4-eb99f2290633
com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketException: Could not determine commit for pull request 7512
at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.resolveSourceFullHash(BitbucketCloudApiClient.java:367)
at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource$3.create(BitbucketSCMSource.java:668)
at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource$3.create(BitbucketSCMSource.java:663)
at jenkins.scm.api.trait.SCMSourceRequest.process(SCMSourceRequest.java:339)
at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrievePullRequests(BitbucketSCMSource.java:661)
at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrieve(BitbucketSCMSource.java:577)
at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:355)
at jenkins.scm.api.SCMSource.fetch(SCMSource.java:265)
at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:634)
at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:276)
at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:165)
at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:978)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:421)
[Fri Dec 15 09:57:51 EST 2017] Finished branch indexing. Indexing took 2 min 35 sec
FATAL: Failed to recompute children of redacted
com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketException: Could not determine commit for pull request 7512
at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.resolveSourceFullHash(BitbucketCloudApiClient.java:367)
at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource$3.create(BitbucketSCMSource.java:668)
at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource$3.create(BitbucketSCMSource.java:663)
at jenkins.scm.api.trait.SCMSourceRequest.process(SCMSourceRequest.java:339)
at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrievePullRequests(BitbucketSCMSource.java:661)
at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrieve(BitbucketSCMSource.java:577)
at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:355)
at jenkins.scm.api.SCMSource.fetch(SCMSource.java:265)
at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:634)
at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:276)
at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:165)
at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:978)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:421)
Finished: FAILURE```
Found logic causing this here but bitbucket allows PR that have no commits yet.
Is this issue still present in latest plugin version?