如何在詹金斯下删除视图而不影响现有工作 [英] How to delete Views under Jenkins without effecting existing jobs
本文介绍了如何在詹金斯下删除视图而不影响现有工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想删除Jenkins下的视图而不影响该视图下的Jobs.我问这是为什么,因为即使以管理员身份删除该视图,我也无法输入相同的视图名称.
I want to delete Views under Jenkins without effecting the Jobs under the view. I am asking this why as I am not able to Enter same name of View even after deleting this as an Administrator.
我检查了Jenkins文件夹下的Config文件,并尝试编辑View名称,但这没用.
I checked Config file under Jenkins folder and tried editing the View name but that didn't work.
我需要确认下面的脚本是仅删除视图名称还是删除视图中的作业.
I need a confirmation whether below script will delete the View name only or along with Jobs under view.
Jenkins.instance.getView("MyView").items.each { item ->
println "deleting $item.name"
item.delete()
}
推荐答案
转到视图->编辑视图->取消选中该视图上的所有作业->保存->删除视图
go to view --> edit view --> unchecked all jobs on that view --> Save --> Delete View
这篇关于如何在詹金斯下删除视图而不影响现有工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文