如何删除詹金斯的旧版本? [英] How to remove old builds in jenkins?

查看:373
本文介绍了如何删除詹金斯的旧版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从詹金斯(Jenkins)的构建目录中删除了旧的构建文件夹,希望将它们从UI中删除,但是不幸的是,这些构建目录已经消失了,它们的UI链接仍然存在.我现在有两个问题
1)如何摆脱UI中已失效的链接?
2)如何从cli中删除旧版本并将其反映在UI中?

I removed old build folders from the build directory in Jenkins expecting them to be removed in the UI, unfortunately whilse these build directories are gone, their UI link still exists. I now have two questions
1) How can I get rid of the defunct links in the UI?
2) How can I delete old build from cli and have it reflected in the UI?

推荐答案

您必须重新启动Jenkins或重新加载数据,才能使UI与后端保持一致.没有别的办法了.

You must either restart Jenkins or reload the data, in order to reconcile the UI with its back end. There is no other way.

如果您可以访问"Manage Jenkins"菜单,则有一个指向从磁盘重载配置"的链接,它比重新启动更具侵入性.

If you have access to the "Manage Jenkins" menu there is a link to "Reload Configuration from Disk", which is a little less invasive than a restart.

请记住,重新加载数据时,系统将在几秒钟内无法使用,就像在完全重新启动期间一样.如果构建很多,则可能需要一些时间.因此,请确保系统的其他用户都可以使用.

Keep in mind that the system will be not usable for a few seconds while the data is reloaded, just like during a full restart. If you have a lot of builds, this might take a little. So, make sure that this is ok with the other users of your system.

这篇关于如何删除詹金斯的旧版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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