ks-devops
ks-devops copied to clipboard
Avoid calling Jenkins replay API in the apiserver
Considering Jenkins is just a CI engine for this project. We are going to remove all Jenkins API calling in the apiserver component.
The old API path: v1alpha2/devops/{project}/pipelines/{pipeline}/runs/{run}/replay/
I'd like to suggest a new API:
v1alpha3/namespaces/{namespace}/pipelineruns/{pipelinerun}/rerun
References
- https://github.com/kubesphere/ks-devops/issues/772
/kind feature
remove all Jenkins API and replace them with Jenkins SDK? Or just replace the URL route
The point of this issue is that only the controller could communicate with Jenkins. The APIServer should only read and write the CRs.
https://github.com/kubesphere/ks-devops/issues/714
/close
@chilianyi: Closing this issue.
In response to this:
/close
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.