如何在詹金斯下删除视图而不影响现有工作 [英] How to delete Views under Jenkins without affecting existing jobs

查看:49
本文介绍了如何在詹金斯下删除视图而不影响现有工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想删除Jenkins下的视图而不影响该视图下的Jobs.我之所以这样问,是因为即使以管理员身份删除该视图,也无法输入相同名称的视图.

I want to delete Views under Jenkins without affecting the Jobs under the view. I am asking this since 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆