Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-73871

Multibranch pipeline don't work with BitBucket branch names containing slashes

XMLWordPrintable

      After Bitbucket Server Integration Version update from 4.0.0 to 4.1.0 Multibranch Pipelines cannot run on branches containing slashes (such as feature branches e.g. "feature/new-feature-name")

      Output when run on branch with slash in its name:

       Branch event
       com.atlassian.bitbucket.jenkins.internal.client.exception.BadRequestException: - response: 400
       	at PluginClassLoader for atlassian-bitbucket-server-integration//com.atlassian.bitbucket.jenkins.internal.http.HttpRequestExecutorImpl.handleError(HttpRequestExecutorImpl.java:161)
       	at PluginClassLoader for atlassian-bitbucket-server-integration//com.atlassian.bitbucket.jenkins.internal.http.HttpRequestExecutorImpl.makeRequest(HttpRequestExecutorImpl.java:108)
       	at PluginClassLoader for atlassian-bitbucket-server-integration//com.atlassian.bitbucket.jenkins.internal.http.HttpRequestExecutorImpl.performRequest(HttpRequestExecutorImpl.java:173)
       	at PluginClassLoader for atlassian-bitbucket-server-integration//com.atlassian.bitbucket.jenkins.internal.http.HttpRequestExecutorImpl.executeRequest(HttpRequestExecutorImpl.java:94)
       	at PluginClassLoader for atlassian-bitbucket-server-integration//com.atlassian.bitbucket.jenkins.internal.http.HttpRequestExecutorImpl.executeGet(HttpRequestExecutorImpl.java:65)
       	at PluginClassLoader for atlassian-bitbucket-server-integration//com.atlassian.bitbucket.jenkins.internal.client.BitbucketRequestExecutor.makeGetRequest(BitbucketRequestExecutor.java:185)
       	at PluginClassLoader for atlassian-bitbucket-server-integration//com.atlassian.bitbucket.jenkins.internal.client.BitbucketRequestExecutor.makeGetRequest(BitbucketRequestExecutor.java:107)
       	at PluginClassLoader for atlassian-bitbucket-server-integration//com.atlassian.bitbucket.jenkins.internal.client.BitbucketCommitClientImpl.getCommit(BitbucketCommitClientImpl.java:31)
       	at PluginClassLoader for atlassian-bitbucket-server-integration//com.atlassian.bitbucket.jenkins.internal.scm.BitbucketSCMSource.lambda$fetchBitbucketCommit$11(BitbucketSCMSource.java:495)
       	at java.base/java.util.Optional.map(Unknown Source)
       	at PluginClassLoader for atlassian-bitbucket-server-integration//com.atlassian.bitbucket.jenkins.internal.scm.BitbucketSCMSource.fetchBitbucketCommit(BitbucketSCMSource.java:494)
       	at PluginClassLoader for atlassian-bitbucket-server-integration//com.atlassian.bitbucket.jenkins.internal.scm.BitbucketSCMSource.retrieve(BitbucketSCMSource.java:312)
       	at PluginClassLoader for scm-api//jenkins.scm.api.SCMSource.fetch(SCMSource.java:581)
       	at PluginClassLoader for workflow-multibranch//org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:104)
       	at PluginClassLoader for workflow-job//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:446)
       Finished: FAILURE 

      The pipeline works correctly after downgrade to 4.0.0 version

            dgeorgopoulos Dyon
            maciejb Maciej
            Votes:
            11 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved: