ks-devops
ks-devops copied to clipboard
Improve PipelineRun deletion logic
Currently, we have provided a GC CronJob in ks-devops helm charts, please see also https://github.com/kubesphere-sigs/ks-devops-helm-chart/pull/7.
But our PipelineRun controller hasn't considered that deletion situation yet. Therefore, I request to improve the PipelineRun deletion logic in PipelineRun controller.
/kind feature
You can use the following method:
https://github.com/jenkins-zh/jenkins-client/blob/e86993b99fc4251aebd14307dc615062c3f419fa/pkg/job/job.go#L300
Some test cases that need to consider:
- [x] The Jenkins build records was missing when try to delete it
I have tested it. It works well. /close
@LinuxSuRen: Closing this issue.
In response to this:
I have tested it. It works well. /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.
/reopen
@chilianyi: Reopened this issue.
In response to this:
/reopen
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.