gerrit

Gerrit - Replicating to github

♀尐吖头ヾ 提交于 2019-12-06 07:34:11
问题 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

Can I set push-options (git push -o “…”) in git config?

两盒软妹~` 提交于 2019-12-06 06:02:32
Git 2.10 introduced git push options ( git push -o "my string" ). Many command line options are configurable, and I was wondering if it was possible for this too. I was not able to find it in git-config , but perhaps I'm overlooking it. So, would it be possible to add a (set of) default push option(s), to have ... git push -o "r=joh.doe" ... the default when running ... git push ? Context: I am using this with Gerrit to directly assign changes to reviewers ( documentation for reference - using compatible syntax <push-ref>%my_string ). When uploading many changes and working in pairs to review

Jenkins configuration

旧时模样 提交于 2019-12-06 02:44:29
问题 I have a GIT repository. When I pushed a GIT change into Gerrit, it triggers a jenkins build and if successful, it merges the code to the GIT repository. But, Jenkins is building the source from GIT repo always. It is not picking the change pushed into Gerrit. What settings should I change in Gerrit/Jenkins ? 回答1: In the jenkins configuration for the git Source Code Management section, click the advanced button and set your refspec to $GERRIT_REFSPEC which will pick up the change set that was

As using gerrit, how to remove remotes tag?

不打扰是莪最后的温柔 提交于 2019-12-06 01:34:03
问题 everybody! I am using gerrit, and i met some issue. I have created a tag which is v1.0. And I want to delete it from local and remote now. The operations have been done: git tag -d v1.0 git push origin refs/tags/v1.0 Then , I met a error: ! [remote rejected] v1.0 (cannot delete references) error: failed to push some refs to 'ssh://admin@review.thomas.com:29418/testproject' What's wrong with it ? 回答1: To delete or overwrite an existing tag, grant (set "ALLOW") "Push" permission with the "Force

Gerrit replicating to gitolite fails

两盒软妹~` 提交于 2019-12-06 01:32:30
I have configured the replication with following configurations $cat /var/gerrit/review_site/etc/replication.config [gerrit] autoReload=true [remote "bt-git"] projects = ^vt-(.*)$ push = refs/heads/*:refs/heads/* url = git@git.something.com:/${name}.git My ssh config file looks like this one, Host git HostName git.something.com User git IdentityFile /var/gerrit/.ssh/id_rsa StrictHostKeyChecking no UserKnownHostsFile /dev/null Although I have already added the right set of hostkeys in my ~/.ssh/known_hosts the replication plugin fails with the following stacktrace [2017-08-02 13:08:55,194]

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

ぐ巨炮叔叔 提交于 2019-12-05 05:19:22
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. git commit --amend works pretty well; that how we do it most of the time. This has been discussed on the gerrit mailing

gerrit+apache2 can't sign out

丶灬走出姿态 提交于 2019-12-05 04:15:20
I can login the gerrit server and review code. But I can't log out by clicking sign out link on the upper-right when I click sign out, it will return to Code Review Dashboard page Below is my httpd.conf and gerrit.config, please help me!!! tks... <VirtualHost *> ServerName localhost ProxyRequests Off ProxyVia Off ProxyPreserveHost On <Proxy *> Order deny,allow Allow from all </Proxy> <Location /login/> AuthType Basic AuthName "Gerrit Code Review" AuthBasicProvider file AuthUserFile /home/kk/gerrit/server/etc/passwords Require valid-user </Location> ProxyPass / http://10.10.68.224:9091/

Unable to clone All-Projects repo after Gerrit install

时光毁灭记忆、已成空白 提交于 2019-12-04 22:20:49
问题 I have a newly setup instance of Gerrit Currently there are only two repos: All-Projects binutils-test When attempting to clone All-Projects I receive the following error: git clone ssh://user@hostname:29418/All-Projects Initialized empty Git repository in /home/user/ error: Trying to write ref HEAD with nonexistant object 2055f748c7285720057fe7213258e6c5b11776e3 fatal: Cannot update the ref 'HEAD'. Cloning of the other repository (binutils-test) works OK, so at least the basic setup seems OK

Push bypasses Gerrit Code Review (TortoiseGit)

痞子三分冷 提交于 2019-12-04 19:52:32
I need to be able to push to a repository but using the code-review feature. To push I am using tortoisegit for this, when pushing to master I get this error: ssh://myusername@myorganization:29418/project ! [remote rejected] master -> master (can not update the reference as a fast forward) error: failed to push some refs to ssh://myusername@myorganization:29418/project The only way I am able to push is by adding the Push permission to the group but this bypasses the code-review. How can I set up Gerrit so that it allows me to push for review? I wasn't the person who set this up so I am having

how should the other remote site using gerrit server based on a mirror repo?

与世无争的帅哥 提交于 2019-12-04 19:50:10
There are two develop sites in my company to cooperate on develop SW for customer, and my job is collecting fix from both sites to make vendor release of our company, and delivered it to customer release hub. (customer release hub using another git server in site C, and besides me, there were CM from other companies would provide similar vendor release to customer release hub for releasing.) after self-study, now I had created gerrit/git system on Site A sucessfully, developer in site A could using gerrit to clone code/review changes with no problem, but developer from site B complains the