-
Bug
-
Resolution: Fixed
-
Major
-
Jenkins Version 2.462.1
Bitbucket Server Integration Version 4.1.0
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
- blocks
-
JENKINS-74736 Failed to do git checkout for Multibranch pipeline
-
- Resolved
-
- duplicates
-
JENKINS-74798 Bitbucket Server Integration 4.1.1 breaks multibranch pipeline build
-
- Closed
-
I can confirm, that I also can't build branches containing a slash when on 4.1.0.
When the pipeline hits the 'checkout scm' command, it fails with the following error message:
ERROR: The requested resource does not exist
Downgrading to 4.0.0 fixed it for now.