Questions tagged [gerrit]

Gerrit is a web based code review and project management for Git based projects.

Gerrit is a web based code review system, facilitating online code reviews for projects using the Git version control system.

Gerrit makes reviews easier by showing changes in a side-by-side display, and allowing inline comments to be added by any reviewer.

Gerrit is not only a review interface but it's able to manage git repository into is core. To keep an external git repository, it is recommended to use replication plugin. Replication plugin documentation.

Gerrit2 is a complete rewrite of the Gerrit fork, completely changing the implementation from Python on Google App Engine, to Java on a J2EE servlet container and a SQL database.

1894 questions
16
votes
3 answers

Gerrit recreating change-ids

I am using gerrit. I used the following command $ cd .git/hooks $ scp -P 29418 demo@localhost:hooks/commit-msg . $ cd ../.. This adds the change-id to my commit message, however if I amend to a commit it creates a NEW change-id. So when I push back…
Frank Sposaro
  • 8,203
  • 4
  • 39
  • 63
16
votes
2 answers

GitHub, Gerrit, Hudson(Jenkins) workflow

I'm just getting started using GitHub, Gerrit, and Hudson(Jenkins) together. And I need some thoughts on workflow. We'd like to use GitHub as our main remote repo. We'd like to use Gerrit primarily for code reviews, but also for build triggers in…
Josh Smith
  • 13,621
  • 16
  • 66
  • 112
16
votes
6 answers

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

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…
MisterPatate
  • 277
  • 1
  • 2
  • 13
16
votes
3 answers

Google authentication for Gerrit and Jenkins

Jenkins and Gerrit have both plugins for OpenID 2.0, but this API has been deprecated by Google May 19 2014 (https://developers.google.com/accounts/docs/OpenID) making it impossible for new installation to use and existing installations must migrate…
revau.lt
  • 2,404
  • 2
  • 15
  • 29
16
votes
2 answers

Searching Gerrit by Commit Message

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…
Jed Anderson
  • 873
  • 1
  • 7
  • 23
16
votes
4 answers

Exclude author from gerrit review

I want to disallow the author of a change to review his/her own changes in gerrit. I'm aware of this suggested hack, but that doesn't really solve the issue. Now I learned from the gerrit issues that gerrit's hardcoded rules can be modified by…
Bananeweizen
  • 20,962
  • 8
  • 64
  • 86
15
votes
3 answers

How to login Gerrit as Administrator

I installed my gerrit on Ubuntu server. As gerrit said:The first people who logined gerrit is Administrator. So I logined first with openID (google account),and I am the Administrator indeed. But,when next day I relogin gerrit with my google…
gemfield
  • 2,852
  • 5
  • 21
  • 24
15
votes
3 answers

How do you apply patch file downloaded from gerrit?

In Gerrit, under the download section for a change, there is a section that allows you to download the Patch-File: Using git apply results in: $ git apply 441eb56b.diff.base64 fatal: unrecognized input What command do I use to apply this patch?
Fantastic Mr Fox
  • 27,453
  • 22
  • 81
  • 151
15
votes
1 answer

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

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…
Jon O
  • 6,267
  • 1
  • 41
  • 54
15
votes
5 answers

How to cherry pick from branch A to branch B on a system without history?

Suppose I have a new system with no git history and I take a fresh checkout of branch A. Branch A already has a commit C1 which I did yesterday from some other system. Now I want to cherry-pick this commit C1 in branch B. Issue: If I take checkout…
Farrukh Chishti
  • 4,865
  • 6
  • 30
  • 45
15
votes
3 answers

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

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?
Alexandre Santos
  • 7,654
  • 7
  • 35
  • 60
15
votes
4 answers

How to push tag to specific branch in gerrit

I have a branch called v2.0 in gerrit. Now I want to the current stat of this branch as v2.0.1. In my local repository I checked out the branch, then added the tag using git tag v2.0.1 Now I'm trying to push that to gerrit, but I'm not sure how. I…
Frank
  • 58,417
  • 87
  • 227
  • 317
15
votes
2 answers

Push on gerrit with windows

I am struggling to push some of my data to a gerrit with TortoiseGit. I created a new repo and committed it to the master. I added one remote, with my private key and I also uploaded the public key. Pulling from the gerrit is no problem, but when I…
Niklas
  • 18,855
  • 28
  • 114
  • 153
15
votes
2 answers

Jenkins Gerrit trigger on all branches except master

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?
Kara
  • 5,650
  • 15
  • 48
  • 55
15
votes
5 answers

Gerrit Add Reviewers

I have a project in Gerrit and each time I submit a change I manually have to add a group of reviewers to that change. Is there a mechanism that would allow me to specify reviewers that I want to be emailed for each change?
Sriram Venkatesh
  • 553
  • 2
  • 7
  • 21