IllegalStateException: "Can't find clone link for protocol HTTP" after plugin update
melorbany opened this issue ยท 14 comments
Jenkins and plugins versions report
Environment
Jenkins: 2.426.3
OS: Linux - 4.14.330-250.540.amzn2.x86_64
Java: 11.0.22 - Red Hat, Inc. (OpenJDK 64-Bit Server VM)
---
bitbucket:241.v6d24a_57f9359
cloudbees-bitbucket-branch-source:871.v28d74e8b_4226
What Operating System are you using (both controller, and any agents involved in the problem)?
Amazon Linux 2
Jenkins: 2.426.3
OS: Linux - 4.14.330-250.540.amzn2.x86_64
Reproduction steps
- Install/update the
bitbucket-branch-source-plugin
to the latest version. - Configure a Multibranch Pipeline job with a Bitbucket repository.
- Trigger the branch indexing job.
- Observe the failure with the IllegalStateException in the Jenkins system logs.
Expected Results
Jenkins should complete branch indexing for a Bitbucket repository without errors. The plugin should find the clone link for the HTTP protocol properly and allow for the normal operation of Jenkins processes, such as checking out the repository and triggering builds based on source code changes.
Actual Results
Finished branch indexing. Indexing took 1.9 sec
FATAL: Failed to recompute children of [job/project name]
java.lang.IllegalStateException: Can't find clone link for protocol HTTP
at com.cloudbees.jenkins.plugins.bitbucket.BitbucketGitSCMBuilder.lambda$getCloneLink$1(BitbucketGitSCMBuilder.java:313)
at java.base/java.util.Optional.orElseThrow(Optional.java:408)
at com.cloudbees.jenkins.plugins.bitbucket.BitbucketGitSCMBuilder.getCloneLink(BitbucketGitSCMBuilder.java:313)
at com.cloudbees.jenkins.plugins.bitbucket.BitbucketGitSCMBuilder.withPrimaryRemote(BitbucketGitSCMBuilder.java:300)
at com.cloudbees.jenkins.plugins.bitbucket.BitbucketGitSCMBuilder.withBranchRemote(BitbucketGitSCMBuilder.java:293)
at com.cloudbees.jenkins.plugins.bitbucket.BitbucketGitSCMBuilder.withBitbucketRemote(BitbucketGitSCMBuilder.java:199)
at com.cloudbees.jenkins.plugins.bitbucket.BitbucketGitSCMBuilder.withCloneLinks(BitbucketGitSCMBuilder.java:130)
at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.build(BitbucketSCMSource.java:1033)
at jenkins.scm.api.SCMSource.build(SCMSource.java:934)
at jenkins.branch.MultiBranchProject.newBranch(MultiBranchProject.java:556)
at jenkins.branch.MultiBra" how to get the current URL"
Anything else?
- Using Bitbucket Cloud.
- Job SCM Configuration is valid.
- Downgrading to the previous version of the
bitbucket-branch-source-plugin
has temporarily resolved the indexing issue, allowing Jenkins to function as expected.
@melorbany Could you explain briefly (with images preferably) how you downgraded the plugin? I'm encountering the same issue but the "downgrade" button is greyed out
@melorbany Could you explain briefly (with images preferably) how you downgraded the plugin? I'm encountering the same issue but the "downgrade" button is greyed out
I faced the same issue while downgrading. What worked for me was to check for any dependent plugins and uninstall them (You can find these by hovering over or clicking the 'Uninstall' button ). After removing the dependencies, the 'Downgrade' button should become active, and you can proceed with the downgrade.
Have the same issue.
same issue here
Same issue +1
Green install. 866.vdea_7dcd3008e works
I have the issue.
Same issue this morning. None of our devs could get any multibranch pipeline to run. We did a manual downgrade with the cli (firtst had to delete the plugin then run the commandjenkins-plugin-cli --plugins cloudbees-bitbucket-branch-source:866.vdea_7dcd3008e)
That solved the issue for now.
For anyone stuck on how to downgrade the plugin without uninstalling anything, see this:
https://medium.com/@minaxijoshi3101/downgrade-a-plugin-version-in-jenkins-without-internet-28580603732b
I followed it and the downgrade was successful without uninstalling any plugin
Same issue
Having the same issue here, downgrading to a older version fixes the issue for now indeed
@andrey-fomin related to: #796 ?
Yes. Looks like it's related to #796. I'll check.
I'm still seeing this problem, even with the latest version 888.v8e6d479a_1730
I verified that this worked on release 866.vdea_7dcd3008e, but it broke on release 871.v28d74e8b_4226.
I'm happy to open a new issue for my problem if needed, but it looks like the exact same failure signature as this one:
ERROR: [Mon Jul 29 15:05:11 GMT 2024] Could not fetch branches from source 354743ac-03b3-4fe9-aeca-236e377ad636
[Mon Jul 29 15:05:11 GMT 2024] Finished branch indexing. Indexing took 4.5 sec
FATAL: Failed to recompute children of Sidecar
java.lang.IllegalStateException: Can't find clone link for protocol HTTP
at com.cloudbees.jenkins.plugins.bitbucket.BitbucketGitSCMBuilder.lambda$getCloneLink$1(BitbucketGitSCMBuilder.java:313)