本文介绍了在Gerrit中删除一个项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在Gerrit中创建一个项目:

$ p $ s $ -p 29418 [ip-address] gerrit create-project - -name [project-name]

但是,如何删除任何项目?

解决方案

注意:由于这个问题被初始问到,我已经发布了,并将它交给了更多活跃的Gerrit开发者。如果你使用Gerrit> = 2.7,我会推荐这条路线。如果没有,请继续阅读。



目前还没有方法从Gerrit中删除项目。它必须手工完成。这是。



有两个步骤可以手动删除项目:


  1. 从服务器文件中删除存储库系统


  2. 从数据库中删除任何对存储库的引用。要清除的表取决于您正在运行的Gerrit版本 - 例如,项目表已在2.2.0中被删除。


如果您正在删除Gerrit服务器上的项目,则应考虑先关闭Gerrit。


I can create a project in Gerrit through:

ssh –p 29418 [ip-address] gerrit create-project --name [project-name]

But, how can I delete any project? I haven't see related commands or buttons on web page.

解决方案

Notice: Since this question was origionally asked, I've released the delete project plugin, and handed it off to the more active Gerrit devs. If you are using Gerrit >= 2.7, I'd recommend this route. If not, read on.

There isn't a method to delete projects from Gerrit currently. It must be done by hand. This is the most-requested feature of Gerrit.

There are two steps to delete a project by hand:

  1. Delete the repository from the server's file system

  2. Delete any references of the repository from the database. The tables to purge depend on the version of Gerrit you are running - the projects table was removed in 2.2.0 for example.

If you're deleting a project on an active Gerrit server, you should consider shuting down Gerrit before.

这篇关于在Gerrit中删除一个项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-25 08:10