The multi-branch Pipeline run API is incorrect
Created by: LinuxSuRen
General remarks
This form is to report bugs. For general usage questions refer to our Slack channel KubeSphere-users
Describe the bug As you can see, the API calling is incorrect.
The incorrect API address: http://ip:port/kapis/devops.kubesphere.io/v1alpha2/devops/{devops}/pipelines/{pipeline}/runs
The correct API address: http://ip:port/kapis/devops.kubesphere.io/v1alpha2/devops/{devops}/pipelines/{pipeline}/branches/{branch}/runs
/area devops /priority high
Versions used(KubeSphere/Kubernetes) KubeSphere: v3.1.0
Environment This is not an environmental issue.
To Reproduce Steps to reproduce the behavior:
- Go to the DevOps project page
- Create a Pipeline with Gitlab as source
- Go to the master branch Pipeline page.
- Click the
Run
button - Nothing happend
Expected behavior The branch Pipeline can be trigger manually.