如何安装删除项目的插件在格里特? [英] How to install delete-project plugin in gerrit?

查看:733
本文介绍了如何安装删除项目的插件在格里特?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想安装删除项目插件来我格里特服务器。
根据最新的版本,我应该从谷歌源代码复制并使用降压构建。

I want to install delete-project plugin to my gerrit server. As per the latest version, I should clone it from google source and use buck build.

我克隆它和我的巴克也准备好了。

I cloned it and my buck is also ready.

什么是应遵循打造删除项目插件并将其添加到我的格里特服务器的步骤。

What are the steps to be followed to build the delete project plugin and add it to my gerrit server.

我试过

buck build .

在删除项目的克隆来源。但是,我收到以下错误

in the cloned source of delete-project. But, I am getting the following error

Traceback (most recent call last):
  File "/home/gerrit/buck/src/com/facebook/buck/parser/buck.py", line 872, in <module>
    main()
  File "/home/gerrit/buck/src/com/facebook/buck/parser/buck.py", line 867, in main
    buildFileProcessor.process(build_file.rstrip())
  File "/home/gerrit/buck/src/com/facebook/buck/parser/buck.py", line 800, in process
    build_env['BUILD_FILE_SYMBOL_TABLE'])
  File "/home/gerrit/delete-project/././BUCK", line 1, in <module>
    gerrit_plugin(
NameError: name 'gerrit_plugin' is not defined
BUILD FAILED: Parse error for BUCK file ././BUCK: End of input at line 1 column 1

请帮忙

推荐答案

我设法安装下面这个线程后删除项目的插件:

I managed to install delete-project plugin after following this thread:

https://groups.google.com/forum/#​​!专题/回购讨论/ hbBc2TUhl7s

和随后根据安装

https://gerrit-review.googlesource.com/Documentation/ CMD-插件-的Install.html

https://gerrit-review.googlesource.com/Documentation/cmd-plugin-install.html

P.S。我建在按照以下步骤的jar:

P.S. I build the jar following the below steps:


  1. git的克隆--recursive https://gerrit.googlesource.com/gerrit

  2. CD格里特

  3. git的克隆--recursive https://gerrit.googlesource.com/plugins/delete-project

  4. 降压构建删除项目:删除项目

您应该然后找到降压出删除-project.jar / GEN /删除项目/删除-project.jar

You should then find the delete-project.jar in buck-out/gen/delete-project/delete-project.jar

这篇关于如何安装删除项目的插件在格里特?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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