无法从詹金斯删除gerrit触发服务器 [英] Cannot remove gerrit trigger server from jenkins

查看:221
本文介绍了无法从詹金斯删除gerrit触发服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在jenkins中添加了一个gerrit触发器插件。在gerrit触发器配置中设置gerrit服务器时,我无法删除已配置的服务器。它只是说

Added a gerrit trigger plugin in the jenkins. While setting up a gerrit server within the gerrit trigger configuration, I cannot remove the server already configured. It simply says

Cannot remove the last server!

但是我可以编辑服务器详细信息。有人遇到过这个问题吗?

But I can edit the server details. Anyone has faced this issue?

Jenkins ver. 1.653
gerrit trigger version  2.21.1

我没有使用Gerrit触发器配置任何作业,这个詹金斯就是一个新鲜的例子。

I dont have any job configured with Gerrit Trigger, and this jenkins is a fresh instance. Just have a test job

推荐答案

该gerrit服务器配置部分必须存在一些错误。

There are must be some error in that gerrit server config section.

如果您的jenkins被tomcat握住,则可以关闭tomcat,也可以关闭jenkins。

You can shutdown the tomcat if your jenkins was hold by tomcat, or shutdown the jenkins what ever.

然后转到 / home / $您的名字/.jenkins ,编辑 gerrit-trigger.xml 删除服务器部分。然后重新启动jenkins并检查它。

Then goto /home/$yourname/.jenkins , edit gerrit-trigger.xml remove the server section. then restart jenkins and check it.

我刚刚发现它可以工作。

I just found it works.

这篇关于无法从詹金斯删除gerrit触发服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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