Jenkins中的Gerrit-trigger插件如何工作? [英] How does the Gerrit- trigger plugin in Jenkins works?

查看:206
本文介绍了Jenkins中的Gerrit-trigger插件如何工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图了解詹金斯中的gerrit-trigger如何进行详细工作? 另外,如何调用触发的笔势的测试?

I am trying to understand how does the gerrit-trigger in Jenkins works in details? Also, how is the test for the triggered cose is being invoked ?

谢谢

推荐答案

gerrit触发器的工作方式如下:

The gerrit trigger works like this:

  1. 它使用ssh连接到gerrit服务器,并使用gerrit stream-events命令

  1. It connects to the gerrit server using ssh and uses the gerrit stream-events command

然后,当数据进入时,它会监视此流

It then watches this stream as the data comes in

它将尝试将事件与项目中已定义的触发器进行匹配

It will try to match the events to triggers that have defined in your projects

潜在的陷阱:

  1. Jenkins用户的SSH凭证不正确

  1. Jenkins user has improper ssh credentials

Jenkins用户没有流事件权限

Jenkins user does not have the stream-events rights

如何检查:

  1. 以jenkins用户身份登录

  1. Login as jenkins user

ssh -p 29418 jenkins@your.domain.com gerrit流事件

ssh -p 29418 jenkins@your.domain.com gerrit stream-events

将提交推送到服务器,您应该会在流中看到内容

Push a commit to the server and you should see things on your stream

问题:

  1. ssh连接失败?设置ssh密钥对

  1. ssh connection failed? setup you ssh key pair

没有流媒体对吗?转到所有项目"->访问",然后在全局功能"下将流事件"添加到非交互式用户"组

No streaming right? Go to the All-Projects->Access and under Global Capabilities add Stream Events to the Non-Interactive Users group

这篇关于Jenkins中的Gerrit-trigger插件如何工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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