gerrit

OpenID with Gerrit not working

故事扮演 提交于 2019-12-04 04:06:40
When I click to Register or Sign In using Gerrit Code Review, I get this error: Provider is not supported, or was incorrectly entered. And when I enter the URL into the OpenID field manually, it takes me to a Google page stating: The page you requested is invalid. Any clue what's happening here? EDIT : Upon further investigation, I realized that if I change the provided URL in the OpenID field to http rather than https , it will redirect me to Google properly and ask me to approve. However, on the redirect back to Gerrit, nothing seems to have happened. I tried registering/signing in multiple

Git review :error: unpack failed: error Missing tree

混江龙づ霸主 提交于 2019-12-04 01:39:36
环境 git version 1.9.1 Gerrit Code Review (2.11.3) 1 2 现象 修改后调用 git review可以提交到Gerrit上,然后只要一用 git commit --amend修改 Commit Message再提交,就会出现此错误;而如果不修改Commit Message,而只是修改增加文件,那么可以用 --amend提交再 git review error: unpack failed: error Missing tree 8d89499daadf6417347218b630b5cae57e7fa27c fatal: Unpack error, check server log To ssh://user1@review.zjc.com:29418/test-project1.git ! [remote rejected] HEAD -> refs/publish/master (n/a (unpacker error)) error: failed to push some refs to 'ssh://user1@review.zjc.com:29418/test-project1.git' 1 2 3 4 5 解决方案 经过多方查资料,是提交时的 thin push 的问题,默认是开着的,要把它关掉 有人说 在工程的

Gerrit push to refs/for/master prohibited

我的未来我决定 提交于 2019-12-03 23:57:51
I have updated the All Project access permission yesterday, people says that they cannot push changes to repository this morning. After I recovered the access permission, they still cannot push changes to repository, only clone works fine. While push changes to remote repository, it says that: ![remote rejected] HEAD -> refs/for/master (prohibited by Gerrit) All our other projects are inherit from All project 's access permission, I updated the access permission to the lowest level (i.e. Anonymous can push branch to refs/heads/* ) for test, but I find that the Administrator cannot push changes

Searching Gerrit by Commit Message

試著忘記壹切 提交于 2019-12-03 23:43:25
Our team uses a standard of prefixing all commit messages with "bz12345:" (where 12345 is replaced by the bug you're working on) and I'd like to be able to search for all commits that have that bug number. I've read http://gerrit.googlecode.com/svn/documentation/2.1.6/user-search.html over and over and haven't figured out a way to search for commit message titles. Does anybody have a trick for searching the first line of a commit message for arbitrary text? None of message:, tr:, and bug: work. Jed Anderson Ah, I figured it out. You MUST have a status: query too. For example, this works :

Gerrit trigger for Jenkins couldn't find any revision to build

狂风中的少年 提交于 2019-12-03 23:43:16
I have trouble using Jenkins+Gerrit. Here is what I got so far: Gerrit Trigger configuration in Jenkins seems to be ok: When I push a new changeset, Jenkins build is launched. I used this: Jenkins: settings for Gerrit Trigger problems to also be able to launch it "manually". As for my configuration, I have something like this: https://stackoverflow.com/a/18347982/2248987 . Branch Specifier is $GERRIT_BRANCH and Ref Spec is $GERRIT_REFSPEC Gerrit and Git are working fines on their own. Access seems OK too. Here is my issue. When building (gerrit triggered or manually), log output is: > git rev

git cherry pick - range of commits and exclude some in between

假装没事ソ 提交于 2019-12-03 18:40:37
问题 I normally use the following git command to cherryppick a range of gerrits..no how do I exclude a couple gerrits in between.. can the below command be modified or is there one where we can pick a range of gerrits and exclude the ones we want.. git cherrypick fromgerritSHA1..togerritSHA1 回答1: You can specify multiple ranges: git cherry-pick A..B C..D E..F or even specific commits: git cherry-pick A B C D E F If you have lots of commits you want to exclude, it might be easier to do something

Gerrit Change has Status:Submitted, Merge Pending, how to solve it?

孤者浪人 提交于 2019-12-03 18:01:28
问题 The Gerrit system is only used by us several people. Once there is a Change A, and its status is: "Submitted, Merge Pending". The change list in the "open" web page. Also I noticed this Change had a dependency on another change B (which status is abandoned). How to make A listed on "Merged" web page ? How to make B disappear, so A has no more dependency on B ? 回答1: If change A has a dependency on B, then A cannot be merged until B is merged. Since you have abandoned B, Gerrit will not

How to get rid of false dependencies in gerrit

佐手、 提交于 2019-12-03 17:05:06
问题 It appears that when using gerrit, by default all changes depend on the previous one. I do not branch for new changes, I simply work off the master branch and then push the commited changes to a remote origin/master. A dependency is created every time even if the two commits have nothing to do with each other. I've run into a few issues which makes me think that I am not using git correctly in combination with gerrit. What should happen differently in my git/gerrit workflow for every commit

Obtain the latest refspec on a Gerrit Change

风格不统一 提交于 2019-12-03 12:37:02
问题 How can I obtain the latest refspec on a gerrit change through a single command. I need the output as "refs/changes/11/1234/4". Is there any git command for the same I do know that ssh commands combined with gerrit query and a bit of scripting can obtain this, but want to know if there is any better way to do the same. Following is the ssh command I would use to get the refspec. ssh -p $REVIEW_SERVER_PORT $GERRIT_REVIEW_SERVER gerrit query --format=TEXT --current-patch-set $CHANGE_SHA | grep

Jenkins + Gerrit Trigger Not Automatically Building

。_饼干妹妹 提交于 2019-12-03 12:36:38
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? 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 job, under Gerritt Trigger, if your Branches Pattern says "**", make sure the Type is set to Path, or else it