文档章节

gerrit stream-events

o
 osc_wws45aot
发布于 2019/08/21 16:16
字数 917
阅读 25
收藏 0

钉钉、微博极速扩容黑科技,点击观看阿里云弹性计算年度发布会!>>>

 http://asterix-gerrit.ics.uci.edu/Documentation/cmd-stream-events.html#_synopsis

SYNOPSIS

ssh -p <port> <host> gerrit stream-events

DESCRIPTION

Provides a portal into the major events occurring on the server, outputting activity data in real-time to the client. Events are filtered by the caller’s access permissions, ensuring the caller only receives events for changes they can view on the web, or in the project repository.

Event output is in JSON, one event per line.

ACCESS

Caller must be a member of the privileged 'Administrators' group, or have been granted the 'Stream Events' global capability.

SCRIPTING

This command is intended to be used in scripts.

 

OPTIONS

--subscribe|-s

Type of the event to subscribe to. Multiple --subscribe options may be specified to subscribe to multiple events. When this option is provided, only subscribed events are emitted and all other events are ignored. When this option is omitted, all events are emitted.

EXAMPLES

$ ssh -p 29418 review.example.com gerrit stream-events
  {"type":"comment-added",change:{"project":"tools/gerrit", ...}, ...}
  {"type":"comment-added",change:{"project":"tools/gerrit", ...}, ...}

Only subscribe to specific event types:

$ ssh -p 29418 review.example.com gerrit stream-events \
      -s draft-published -s patchset-created -s ref-replicated

SCHEMA

The JSON messages consist of nested objects referencing the change, patchSet, account involved, and other attributes as appropriate.

Note that any field may be missing in the JSON messages, so consumers of this JSON stream should deal with that appropriately.

EVENTS

Assignee Changed

Sent when the assignee of a change has been modified.

type

"assignee-changed"

change

change attribute

changer

account attribute

oldAssignee

Assignee before it was changed.

eventCreatedOn

Time in seconds since the UNIX epoch when this event was created.

Change Abandoned

Sent when a change has been abandoned.

type

"change-abandoned"

change

change attribute

patchSet

patchSet attribute

abandoner

account attribute

reason

Reason for abandoning the change.

eventCreatedOn

Time in seconds since the UNIX epoch when this event was created.

Change Deleted

Sent when a change has been deleted.

type

"change-deleted"

change

change attribute

deleter

account attribute

Change Merged

Sent when a change has been merged into the git repository.

type

"change-merged"

change

change attribute

patchSet

patchSet attribute

submitter

account attribute

newRev

The resulting revision of the merge.

eventCreatedOn

Time in seconds since the UNIX epoch when this event was created.

Change Restored

Sent when an abandoned change has been restored.

type

"change-restored"

change

change attribute

patchSet

patchSet attribute

restorer

account attribute

reason

Reason for restoring the change.

eventCreatedOn

Time in seconds since the UNIX epoch when this event was created.

Comment Added

Sent when a review comment has been posted on a change.

type

"comment-added"

change

change attribute

patchSet

patchSet attribute

author

account attribute

approvals

All approval attributes granted.

comment

Review comment cover message.

eventCreatedOn

Time in seconds since the UNIX epoch when this event was created.

Draft Published

Sent when a draft change has been published.

type

"draft-published"

change

change attribute

patchSet

patchSet attribute

uploader

account attribute

eventCreatedOn

Time in seconds since the UNIX epoch when this event was created.

Dropped Output

Sent to notify a client that events have been dropped.

type

"dropped-output"

Hashtags Changed

Sent when the hashtags have been added to or removed from a change.

type

"hashtags-changed"

change

change attribute

editor

account attribute

added

List of hashtags added to the change

removed

List of hashtags removed from the change

hashtags

List of hashtags on the change after tags were added or removed

eventCreatedOn

Time in seconds since the UNIX epoch when this event was created.

Project Created

Sent when a new project has been created.

type

"project-created"

projectName

The created project name

projectHead

The created project head name

eventCreatedOn

Time in seconds since the UNIX epoch when this event was created.

Patchset Created

Sent when a new change has been uploaded, or a new patch set has been uploaded to an existing change.

Note that this event is also sent for changes or patch sets uploaded as draft, but is only visible to the change owner, any existing reviewers, and users who belong to a group that is granted the View Drafts capability.

type

"patchset-created"

change

change attribute

patchSet

patchSet attribute

uploader

account attribute

eventCreatedOn

Time in seconds since the UNIX epoch when this event was created.

Ref Updated

Sent when a reference is updated in a git repository.

type

"ref-updated"

submitter

account attribute

refUpdate

refUpdate attribute

eventCreatedOn

Time in seconds since the UNIX epoch when this event was created.

Reviewer Added

Sent when a reviewer is added to a change.

type

"reviewer-added"

change

change attribute

patchSet

patchSet attribute

reviewer

account attribute

eventCreatedOn

Time in seconds since the UNIX epoch when this event was created.

Reviewer Deleted

Sent when a reviewer (with a vote) is removed from a change.

type

"reviewer-deleted"

change

change attribute

patchSet

patchSet attribute

reviewer

reviewer that was removed as account attribute

remover

user that removed the reviewer as account attribute

approvals

All approval attributes removed.

comment

Review comment cover message.

eventCreatedOn

Time in seconds since the UNIX epoch when this event was created.

Topic Changed

Sent when the topic of a change has been changed.

type

"topic-changed"

change

change attribute

changer

account attribute

oldTopic

Topic name before it was changed.

eventCreatedOn

Time in seconds since the UNIX epoch when this event was created.

Vote Deleted

Sent when a vote was removed from a change.

type

"vote-deleted"

change

change attribute

patchSet

patchSet attribute

reviewer

user whose vote was removed as account attribute

remover

user who removed the vote as account attribute

approvals

all votes as approval attributes

comment

Review comment cover message.

 
o
粉丝 0
博文 500
码字总数 0
作品 0
私信 提问
加载中
请先登录后再评论。
CentOS配置Gerrit Gitlab Jenkins--Gerrit添加Jenkins(6)

1、Jenkins的下载,安装就不介绍了,默认安装就可以。 2、安装Gerrit trigger Plugin。 3、配置Gerrit trigger 异常:User jenkins has no capability to connect to Gerrit event stream 解...

Huangchp
2018/06/04
539
0
CI 系统搭建:五. GitLab、Gerrit、Jenkins 三者整合

CI 系统搭建:一. 基础环境设置、规划 CI 系统搭建:二. GitLab 的安装配置 CI 系统搭建:三. Gerrit 的安装配置 CI 系统搭建:四. Jenkins 的安装配置 目录 1 Gerrit 和 Jenkins 整合 2 Gi...

tantexian
2016/03/29
700
0
CentOS配置Gerrit Gitlab Jenkins--Gerrit与Nginx(3)

这里介绍Gerrit的登录验证,在安装Gerrit时Authentication method[openid/?]: http方式,所以使用到nginx,也可以用apache。 1、安装nginx sudo yum install nginx 配置文件路径:/etc/ngin...

Huangchp
2018/05/31
129
0
Gerrit plugin安装和删除

对Gerrit的plugin安装和删除需要通过它的sshd来管理。 如:ssh -p 8418 admin@localhost gerrit plugin ls 显示当前插件情况。 其他命令可以通过ssh -p 8418 admin@localhost gerrit plugin...

boydreaming
2016/10/11
565
0
gerrit安装指南(ubuntu环境)

搭建环境:Ubuntu 14.04 一、环境准备 1.Java环境 gerrit依赖,用于安装gerrit环境。 下载:jdk-7u79-linux-x64.tar.gz http://www.oracle.com/technetwork/java/javase/downloads/jdk7-down......

SuShine
2018/05/18
210
0

没有更多内容

加载失败,请刷新页面

加载更多

未捕获ReferenceError:未定义$? - Uncaught ReferenceError: $ is not defined?

问题: How come this code throws an 此代码如何引发 Uncaught ReferenceError: $ is not defined 未捕获的ReferenceError:未定义$ when it was OK before? 以前什么时候可以? $(document......

javail
23分钟前
12
0
263. Ugly Number

题目: 263. Ugly Number 题目地址:https://leetcode.com/problems/ugly-number/ Write a program to check whether a given number is an ugly number. Ugly numbers are positive numbers......

JiaMing
45分钟前
58
0
HCIA_ARP01

ARP(地址解析协议) eNSP 常用路由器:AR2220 常用交换机:S5700、S3700 常用终端:PC、MCS(主播服务器) 设备连线:Copper(以太网用到的双绞线)、Serial(串口线,2SA接口)、Auto(自动连...

创业789
48分钟前
25
0
如何在Rails 4中使用问题 - How to use concerns in Rails 4

问题: The default Rails 4 project generator now creates the directory "concerns" under controllers and models. 默认的Rails 4项目生成器现在在控制器和模型下创建目录“Concer”。 ......

fyin1314
53分钟前
19
0
【LeetCode】 57 括号生成

题目: 解题思路: https://leetcode-cn.com/problems/generate-parentheses/solution/hui-su-suan-fa-by-liweiwei1419/ 代码: import java.util.ArrayList;import java.util.List;publ......

JaneRoad
昨天
18
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部