gerrit

google gerrit repo, git commit如何自动生成Change-Id

别说谁变了你拦得住时间么 提交于 2019-12-03 10:52:58
1). 检查仓储.git/hook下面是否有 commit-msg 文件,如果没有到下面的地址下载: http://review.cyanogenmod.org/tools/hooks/commit-msg https://gerrit-review.googlesource.com/tools/hooks/commit-msg 如果有自己的gerrit-review服务器,可以直接在网址后面加上 /tools/hooks/commit-msg 即可下载。 添加后,每次执行git commit 都会自动在log里面生成 Change-Id,用于gerrit code review。 2). 如果是repo sync 下来的代码,随便找一个仓储,按上面的方法,检查是否存在 commit-msg 软链接(repo sync 是在每个仓储.git/hooks下面创建的软链接),如果不存在,修改工程目录下面 .repo/manifest.xml ,注意这个xml文件也是软链接。 <remote name="aosp" review="review.source.android.com" fetch=".." /> <default revision="master" remote="aosp" sync-j="4" /> 注意必须添加上面的 review="review.source

Is there anything for subversion as gerrit for git? [closed]

倾然丶 夕夏残阳落幕 提交于 2019-12-03 10:45:40
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 10 months ago . Gerrit is useful but it's only for git. I want to setup something like it, but for subversion. Is there any software doing this job? 回答1: For which part: code review or hosting or both? For code reviews, Review Board works well. It's not perfect, but I've used it to great success on a couple of projects. It

Gerrit as a review tool, not as the repository of record

烂漫一生 提交于 2019-12-03 10:32:32
I've spun up an instance of gerrit from the quick start guide. My company uses BitBucket with pull requests and occasionally crucible for code reviews. We use Jenkins with an extensive build/deploy pipeline tied to BitBucket. We'd like to integrate gerrit for code review because of its ability to stage commits and build/verify them before the review is accepted. Basically, I want gerrit's "submit" button to push upstream to BitBucket. (I'd rather not deal with trying to do this by replication; I want to maintain BitBucket as upstream/repository of record because of corporate inertia.) Does

Sonar Gerrit plugin not reporting results

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: We utilize the pipeline and after the build completes successfully we are running the following: bat "mvn sonar:sonar -B -s ${buildSettings} -Dsonar.analysis.mode=preview -Dsonar.skipDesign=true -Dsonar.report.export.path=sonar-report.json" sonarToGerrit(severity: 'Major', postScore: true, category: 'Code-Review', newIssuesOnly: true, issuesScore: '0', noIssuesScore: '0', changedLinesOnly: true) The below build log shows that it found a good number of issues but yet the issues to be commented is 0. Build log Other posts suggest that it may

How to change a patchset and push it as a new one?

强颜欢笑 提交于 2019-12-03 09:51:27
问题 Is it possible to fetch an existing patchset (that has not been merged into my local machine), change and push it as a new Patch Set? 回答1: @Uncletall put all the steps there and the link, the only thing is that you should not delete the changeId and you should do a git commit --amend. I am giving him a +1. It should be like this On Gerrit, go to the review, select "checkout", on the Download field as opposed to "pull", "cherry-pick", or "patch", then copy the command. On the git project paste

Revert to older patch set version via the Gerrit UI?

邮差的信 提交于 2019-12-03 09:30:45
If I have multiple patch set versions for one change in Gerrit, it seems like I can only submit the latest patch set version (because only that one has the necessary button). Is there an easy way to instead submit one of the old patch set versions of the same change, using only my web browser on that Gerrit instance? I know that I can fetch the wanted version of the patch set from my git client and push it as yet another new patch set version on top, but I would like to avoid having identical patch set versions multiple times in the review and discussion around it. Brad No, sorry, this is not

Gerrit 配置问题解决

非 Y 不嫁゛ 提交于 2019-12-03 09:22:34
1、修复用户邮箱地址时无法验证邮箱地址导致失败 解决方法: 将本地电脑的id_rsa.pub的公钥添加到gerrit的管理员账号admin的秘钥管理中 修改.ssh/config文件 Host gerrit Hostname gerrit的ip地址 User admin Port 29418 然后使用命令:ssh gerrit set-account --add-email 邮箱地址 用户名 2、Gerrit Replication Reject HOSTkey错误 修改.ssh/config文件 Host gitlab地址 User gitlab账号 IdentityFile /path/to/the/private/key(id_rsa) StrictHostKeyChecking no UserKnownHostsFile /dev/null执行 ssh-keyscan -p gitlab端口 gitlab地址>>.ssh/known_ hosts3、Gerrit Replication 报Invalid privatekey 错误原因:id_rsa文件的注释是 -----Begin openssh private key---需要生成格式是 -----begin RSA private key---的才行解决:1、使用ssh-keygen -t rsa -m PEM

Unable to find Submit button in gerrit any scenario

匿名 (未验证) 提交于 2019-12-03 09:14:57
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have stucked with one issues from last last 12 hours and not able to find a solution in gerrit. I have installed test Gerrit instance "2.14.3". from last few hours, I am trying to find a submit button and failed badly. Tried many options and many reference in google but could not get Submit button Enabled. Note, I am pushing the change via one registered user and trying to submit via admin user but "SUBMIT" button is not being displayed at all. Few Quick Commands to check the senario git clone http://13.126.209.78:8080/test1 curl -Lo .git

Gerrit Error: commit subject &gt;65 characters; use shorter first paragraph

匿名 (未验证) 提交于 2019-12-03 09:02:45
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: We started to use the Gerrit code review recently. Sometimes when you make a simple commit and try to make a push to Gerrit, this error is displayed: remote rejected commit subject >65 characters; use shorter first paragraph I looked in the web but did not find how to solve this problem. I tried to make an amend in the previous commit and reduce the size of the commit message, but the error remains. What kind of error is that? And how to solve it? Is there some Gerrit configuration about the size of the commit message? 回答1: The first

Gerrit - Replicating to github

匿名 (未验证) 提交于 2019-12-03 08:57:35
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I configured gerrit replication via [remote "github"] url = git@github.com:MYUSERNAME/${name}.git push = +refs/heads/*:refs/heads/* push = +refs/tags/*:refs/tags/* timeout = 5 replicationDelay = 0 authGroup = Administrators I can log in to github with the gerrit2 user as far as it is allowed from github site. Github is in the known hosts. However I get the following error: [2013-06-04 20:04:54,472] ERROR com.googlesource.gerrit.plugins.replication.ReplicationQueue : Cannot replicate to git@github.com:MYUSERNAME/All-Projects.git org.eclipse