Issue
Jobs using the Bitbucket Branch Source plugin fail with the following error:
java.lang.InterruptedException at com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.getResource(BitbucketServerAPIClient.java:910) at com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.getSingleBranch(BitbucketServerAPIClient.java:642) at com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.getBranch(BitbucketServerAPIClient.java:592) at com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.getBranch(BitbucketServerAPIClient.java:131) at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrieve(BitbucketSCMSource.java:912) at jenkins.scm.api.SCMSource.fetch(SCMSource.java:581) at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:99) at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:311) at hudson.model.ResourceController.execute(ResourceController.java:101) at hudson.model.Executor.run(Executor.java:442) Finished: FAILURE
Environment
-
Bitbucket Branch Source plugin
804.v8b_0642650b_d2
through809.vc1d904b_30426
(inclusive)
Resolution
Upgrade to CloudBees CI 2.426.1.2
or later (CloudBees CI release notes).
The fix was https://github.com/jenkinsci/bitbucket-branch-source-plugin/pull/737 which was released in Bitbucket Branch Source plugin 820.v30b_e8c1e36f3
.