从Jenkins Jobs删除Openshift的豆荚
在这个问题之前,我使用了Jenkins命令行,但这对我来说不有效,所以我想写一些可以自动化的过程而不是终端的东西。当我抬头时,我可以创建一个管道或自由泳项目,但是我是新手,我无法理解我看到的东西。有没有办法自动化此过程?
这是我的Jenkins CLI删除Pods: kubectl delete pod -field-selector = status.phase ==成功的'
我可以生成此代码,并将其转换为将应用于所有项目并从OpenShift中删除POD? 感谢您的帮助
before this question i used jenkins command line but it is not effective for me so i wanted to write something that automates the process but not from terminal. As i looked up i can create a pipeline or freestyle project, but i am new to this i could not understand the things that i see. Is there a way to automate this process?
This was my jenkins cli to delete the pods:kubectl delete pod --field-selector=status.phase==Succeeded'
Can i generate this code and turn this to that will be applied in all projects and delete pods from openshift ?
Thanks for the help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论