Owner field is missing in the Bitbucket multi-branch create request
Created by: LinuxSuRen
Describe the bug
As you can see below, we need the field owner
.
The screenshot from the browser console:
The data structure from the backend:
You can get the repository scanning log like below:
ERROR: [Mon Mar 22 08:13:34 UTC 2021] Could not update folder level actions from source
java.io.FileNotFoundException: URL: /rest/api/1.0/projects//repos/jenkins-cli
at com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.getRequest(BitbucketServerAPIClient.java:854)
at com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.getRepository(BitbucketServerAPIClient.java:458)
at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrieveActions(BitbucketSCMSource.java:1037)
at jenkins.scm.api.SCMSource.fetchActions(SCMSource.java:848)
at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:598)
at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:278)
at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:165)
at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1032)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:428)
``1
/area devops
**Versions used(KubeSphere/Kubernetes)**
KubeSphere: `nightly-20210318`
**Environment**
This is not an environmental issue.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to the DevOps Pipeline page
2. Create a Bitbucket multi-branch Pipeline
3. Check the HTTP request payload from the browser console
**Expected behavior**
The Bitbucket multi-branch Pipeline works well.