gerrit

Creating SSH keys for Gerrit and Hudson

这一生的挚爱 提交于 2019-12-17 02:33:11
问题 I'm trying to use the Hudson Gerrit Trigger plug-in. For whatever reason, Gerrit is not accepting the SSH key located at /var/lib/hudson/.ssh/id_rsa . In the GUI I get Connection error : com.jcraft.jsch.JSchException: Auth fail as an error, and when I'm working in the terminal I get a Permission denied (publickey) error. How can I generate and use a working private key so Hudson and Gerrit can play nice? 回答1: The OP Josh Smith managed to sort it out: I'd actually needed to add the SSH key

Rebase a merge commit when parents changed

两盒软妹~` 提交于 2019-12-13 16:10:01
问题 Given a gerrit changeset which depends on two other, independent changesets: P1- \ P2----C gerrit represents this as a merge commit with two parents. Unlike normal merge commits though, it will contain nontrivial changes that are not related at all to the changes in the parents. The parent changesets are updated in gerrit, so we have commits P1' and P2', which are amended versions of P1 and P2, modified based on code review feedback. What is the easiest way of producing C' which is a merge

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

偶尔善良 提交于 2019-12-13 12:21:49
问题 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

How to setup gitolite and gerrit on separate ubuntu servers?

巧了我就是萌 提交于 2019-12-13 04:44:33
问题 I would like to setup gitolite on one ubuntu server. This gitolite is used to host git repositories. I would like to setup gerrit on different ubuntu server and it uses git repositories hosted on gitolite server. Is it possible? If yes, please provide setup steps. 回答1: It should be possible if the Gitolite server shares the repositories via e.g. NFS to the Gerrit server. Gerrit needs to "own" the repositories by accessing them through a mounted file system. But why would you want to do this?

What is the official name of the number in a Gerrit review url

自作多情 提交于 2019-12-13 04:15:04
问题 I have been using Git/Gerrit for about 9 months and I still don't know the answer to this question. (c.f. Gerrit Documentation ) In Gerrit , when a change is pushed for review, there will be an URL about the change with an embedded number. For example: http://gerrithost:8080/68 What is the official name of this number? ( 68 in the above example). This number is an important concept when discussing the Gerrit workflow. On the Gerrit UI, this number may also shown on the upper left-hand conner.

How can I configure access from external ip to internal ip on GCP through nginx reverse proxy?

对着背影说爱祢 提交于 2019-12-13 03:43:17
问题 Can't connect to application through External IP. I started gerrit code review application on GCP's vm instance(CentOS 7). It works on http://localhost:8080 and I can't connect to it through external IP. Also I tried to create NGINX reverse proxy, but probably my configuration is wrong. By the way after installing NGINX, the starter page were shown on external ip. # nginx configuration /etc/nginx/conf.d/default.conf server { listen 80; server_name localhost; auth_basic "Welcomme to Gerrit

Why Gerrit is unable to create branch by itself?

纵然是瞬间 提交于 2019-12-12 10:33:03
问题 Following this answer and my own question, I have a simple (hope so) question. If I'm pushing a particular branch, with all required refs properly set: git checkout 82-blah-blah git push origin HEAD:refs/for/82-blah-blah Why do I always get: ! [remote rejected] HEAD -> refs/for/82-blah-blah (branch 82-blah-blah not found) and I always have to go to Gerrit's UI and create that branch manually? Isn't that an obvious step, that Gerrit could simply automate? Or am I missing something? 回答1: This

Searching Gerrit by Commit Message

Deadly 提交于 2019-12-12 08:21:12
问题 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:

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

余生长醉 提交于 2019-12-12 07:44:38
问题 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

How do I trigger a CruiseControl build remotely?

本秂侑毒 提交于 2019-12-12 06:37:28
问题 I have a CruiseControl.net (v1.8.4.1) server that runs builds based on a trigger that checks for changes in Git. I would like to be able to initiate a parameterized build remotely, by giving the parameters to a URL. Something like "http://cruisecontrol.local/api/build?job=PreCommitBuild&project=widgets&branch=feature/story123". The end goal is to have a review system such as that built into Gerrit or Stash be able to initiate a build for a specific branch, by posting some parameters to the