gerrit

Gerrit基操

爷,独闯天下 提交于 2020-01-13 05:12:30
Gerrit学习 gerrit的框架大致如下所示: 在没有gerrit的时候,我们提交代码都是经过add->commit->push操作,然后将本地的代码提交到对应的branch上。 当加上gerrit的时候,我们会先把代码提交到gerrit上,这个gerrit相当于一个审查站,只有通过gerrit的代码才会被提交到git的repo上。因此我们提交的时候就需要把代码提交到对应的gerrit分支上,这个分支一般是refs/for/master等,表示是对于master分支的提交分支,当把代码push到这个分支之后,就会提醒你指定的reviewer来对push的代码进行review,通过之后才会将代码提交到git的对应分支上。 实际上gerrit的作用远不止这些,有时间再补充。。。 总结 gerrit就是作为一个代码检查的中转站,想要提交到git上的代码必须要先提交到gerrit上并通过review才可以,对应的分支是refs/for/<branchname>,其余操作与git并没有什么区别。 来源: CSDN 作者: UpUper2019 链接: https://blog.csdn.net/qq_37763130/article/details/103821713

Jenkins Gerrit trigger on all branches except master

狂风中的少年 提交于 2020-01-09 19:45:30
问题 I have a build in Jenkins triggered by Gerrit I would like to trigger on all branches except master . What regex should I use for this? 回答1: Using a negative lookahead worked for me: ^(?!.*master).*$ Should trigger on everything except master. Kudos to this questions answers. 回答2: The following worked for me: ^(master.+|(?!master).*)$ This excludes master only. Not master_joda , for example. It is also based on these answers. 来源: https://stackoverflow.com/questions/17155249/jenkins-gerrit

git fetch in repo dir 'Permission denied' but working with direct link with user

一曲冷凌霜 提交于 2020-01-07 03:12:26
问题 I got an issue with accessing the external repository on gerrit through git. When I try to git fetch in cloned repository directory (clone works well) I get: > git fetch Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. But when I do it directly with repository ssh address and username I get: > git fetch ssh://username@ip:port/repo_name remote: Counting objects: xxxx, done remote: Finding

GWT ORM OrmConcurrencyException: Concurrent modification detected - find the cause

巧了我就是萌 提交于 2020-01-07 01:49:35
问题 In a GWT based application (Google Gerrit in particular), I'm getting an exception (while executing the gerrit review command): com.google.gwtorm.server.OrmConcurrencyException: Concurrent modification detected at com.google.gwtorm.jdbc.JdbcAccess.execute(JdbcAccess.java:449) at com.google.gwtorm.jdbc.JdbcAccess.updateAsBatch(JdbcAccess.java:270) at com.google.gwtorm.jdbc.JdbcAccess.update(JdbcAccess.java:223) Is there a way to identify which data in particular caused the concurrency error?

how to reset to a specific commit?

若如初见. 提交于 2020-01-04 03:55:09
问题 I have the following recent commits when I do "git log --oneline"...I want to reset to "8ec2027",I tried some rebase commands that didnot work..what is the exact command to do this? 2503013 code: cs release 1.2.3.47 269ed14 code: Fixed below issues due to which 2nd client is not associating to GO dca02a3 code: Donot allow the scan during WPS/EAPOL exchange. b2fee57 code: MCC Adaptive Scheduler 6af29c4 code: Not able to connect more then 10 STA 150aacd code: Fix the Max Tx power value in 5G

Is it possible to add patch sets to a Gerrit review without ammending/squashing commits

霸气de小男生 提交于 2020-01-02 03:31:08
问题 A simple example. I commit a change to Gerrit, which breaks the CI build or a reviewer is not satisfied. I then fix my change with another commit. In many cases this is small patch set for which I do not want a new gerrit review but rather as a new patch set in the original review. I know this can be achived using ammend or rebasing and squashin. Is this the only options? We are a little bit concerned about having to rewrite history using rebasing and squashing. Thanks, Giao. 回答1: git commit

Customize gerrit home page:logo and color

丶灬走出姿态 提交于 2020-01-01 19:43:46
问题 I have installed and configured gerrit, I see it has white color background instead of green like https://codereview.qt-project.org (probably changed from green to white in recent versions) but, want to know if we can customize color and add a logo. From gerrit-documentation I see we have to create below files and place them in $site_path/etc/ but, I am not sure how to create them, I am bad in HTML. $site_path/etc/GerritSiteHeader.html and $site_path/etc/GerritSiteFooter.html $site_path/etc

How to disable direct push to Gerrit?

白昼怎懂夜的黑 提交于 2020-01-01 10:56:07
问题 While working with Gerrit, the expected push is: git push origin HEAD:refs/for/branch But some bad guys seems to do this in a simple way(they learned from some Git manual): git push origin or git push These operation will cause serious problems: The commit merged directly into master (or some default) branch in remote server. Although the guys write some commit message, but git log can'not find them. Maybe more... Is there was a way to disable these push operation in Gerrit settings? Or

Jenkins + Gerrit Trigger Not Automatically Building

三世轮回 提交于 2020-01-01 02:47:11
问题 Jenkins does not seem to be automatically pulling in changes that need to be reviewed from Gerrit. We're using Gerrit Trigger. Also If I try to manually trigger some, it seems like nothing ever happens. The "control" in the Gerrit Trigger management area, doesn't seem to much... flashes either "starting", "stopping" or "restarting" Any ideas where I went wrong? 回答1: I was just having the same problem, and it had to do with the default Gerritt setting in my job for matching branches. In your

Official documentation about “Gerrit Change Number”

走远了吗. 提交于 2019-12-31 05:25:06
问题 This is a follow-up question of my other question: What is the official name of the number in a Gerrit review url I have now learned that the small integer embedded in a Gerrit url is called " Gerrit Change Number " and sometimes " Numeric Change Number ". For example, it is the number 68 in the following Gerrit url http://gerrithost:8080/68 This number plays an important role in understand the Gerrit workflow, yet there are not a lot of discussion about it. I even have a feeling that it may