-
Bug
-
Resolution: Fixed
-
Major
-
None
-
-
936.4.2
Cloudbees-bitbucket-branch-source supports client certificate credentials authentication when connecting to BictBucket Server.
It seems from the plugin version 933.3.0, this is failing and we are not sending the certificate in the requests, and in case the Bitbucket server is installed behind a Mutual Tls proxy it will fails with:
Mon May 19 11:56:22 CEST 2025] Starting branch indexing... ERROR: [Mon May 19 12:02:09 CEST 2025] Could not update folder level actions from source 42912027-6288-4c45-8b08-7872e7ac3d0c [Mon May 19 12:02:09 CEST 2025] Finished branch indexing. Indexing took 5 min 47 sec FATAL: Failed to recompute children of publicrepo com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketRequestException: HTTP request error. Status: HTTP/1.1 400 Bad Request Response: <html> <head><title>400 No required SSL certificate was sent</title></head> <body> <center><h1>400 Bad Request</h1></center> <center>No required SSL certificate was sent</center> <hr><center>nginx/1.27.4</center> </body> </html>
Doing this with any other previous version works properly:
Started by user admin [Mon May 19 12:58:51 CEST 2025] Starting branch indexing... Connecting to https://localhost:1443 using CN=xxx,OU=xxx,O=xxx,ST=xxx,C=XX Looking up SECO/publicrepo for branches Checking branch main from SECO/publicrepo ‘Jenkinsfile’ found Met criteria No changes detected: main (still at 84325cc090e0faae90f4d11d3917ec1fb833794a) 1 branches were processed Looking up SECO/publicrepo for pull requests 0 pull requests were processed [Mon May 19 12:58:51 CEST 2025] Finished branch indexing. Indexing took 0.53 sec Finished: SUCCESS
Reviewing with git bisect, it seems the error was introduced in the commit
# first bad commit: [e4d32d549b3bf29a896ae0ec31f2d88cbcb32377] [JENKINS-64418] Add exponential backoff to BitBucket rate limit retry loop (#927)
- links to