-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Jenkins 2.55
Bitbucket Branch Source Plugin 2.1.2
Mercurial repo
Bitbucket Cloud
Bitbucket branch source plugin fail to "Scan Multibranch Pipeline Now" if branch name contains spaces
java.lang.IllegalArgumentException: Invalid uri 'https://bitbucket.org/api/1.0/repositories/XVM/xvm/raw/WoT 0.9.18.0-NA/Jenkinsfile': escaped absolute path not valid
at org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:222)
at org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java:89)
at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRequestStatus(BitbucketCloudApiClient.java:587)
at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.checkPathExists(BitbucketCloudApiClient.java:275)
at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource$1.exists(BitbucketSCMSource.java:458)
at jenkins.scm.api.SCMSourceCriteria$Probe.stat(SCMSourceCriteria.java:99)
at org.jenkinsci.plugins.workflow.multibranch.WorkflowBranchProjectFactory$1.isHead(WorkflowBranchProjectFactory.java:52)
at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.observe(BitbucketSCMSource.java:464)
at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrieveBranches(BitbucketSCMSource.java:413)
at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrieve(BitbucketSCMSource.java:327)
at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:300)
at jenkins.scm.api.SCMSource.fetch(SCMSource.java:210)
at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:628)
at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:266)
at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:162)
at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:967)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:405)