The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [gerrit]

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

0
votes
0answers
13 views

GitKraken how to push commit to HEAD:refs/for/master?

I am trying to push my commit stored on master to gerrit code review. I've implemented hooks which I am sure they are OK because I get Change-Id. When I push commit in console by calling: git push ...
0
votes
0answers
10 views

Gerrit - Override the default abbreviation for review labels

By default, an abbreviated name for a label shown as a compact column header, for example on project dashboards. Defaults to all the uppercase characters in the label name, e.g. Label-Name is ...
0
votes
0answers
35 views

gerrit diff view syntax highlighting for CUDA and OpenCL

The Gerrit code review site does not have syntax highlighting for CUDA and OpenCL. Traditionally, to get syntax highlighting of e..g .cu/.cuh/.clh was possible on the old UI, thought not painless, by ...
2
votes
1answer
40 views

Need a Jenkins job which builds all its dependency tree first before running itself

I have a maven project which has some other projects as dependencies and those dependencies might have some other projects as dependencies. Proj1 (Proj2 as dependency) |----> Proj2 (Proj3 as ...
1
vote
1answer
13 views

Gerrit - find the review comments globally

Is there any way to globally search review comments, given by other user. I tried message:"some word to search" in the gerrit search engine, however this is not the right way to find. I need to search ...
0
votes
2answers
24 views

How to pass pipeline variables to post build gerrit message?

I have a Pylint running in a Jenkins pipeline. To implement it, I used Gerrit trigger plugin and Next Generation Warnings plugin. Everything is working as expected - Jenkins is joining the review, ...
0
votes
1answer
31 views

Gerrit 2.15.12 - Kerberos + GSSAPI + Active Directory - possible bug in sending SPN

Running on RHEL 7.5 with Java 8. Kerberos 5 release 1.15.1. We are seeing a strange behaviour with this set-up that has been seen in all versions since 2.11.10. Note, I can't post direct logs or ...
0
votes
1answer
18 views

Checkout on gerrit patchset with LINK

let's assume that everything I know is gerrit link. Is it possible to checkout on such commit? so I've got https://gerrit.com/#/c/4840847/ The patchset is not specified so I want to checkout on ...
0
votes
0answers
26 views

Git pull and clone not working, Gerrit cahe Web_sessions shows 100% disk usage

I have git setup on the Linux server, and use gerrit code review for the user interface. Suddenly when i try to clone and pull in the local repository, it does not work and is stuck. No error. i ...
0
votes
1answer
36 views

Using Python with pygerrit2 Library to make API call to Gerrit From Power BI Desktop

I've recently started using power BI. I am trying to get data from Gerrit Rest Api Using Python. The following code works fine when I run it locally on my machine. from requests.auth import ...
0
votes
2answers
38 views

How can I update my merge commit with latest master?

I have the following scenario that is blocking me to merge my branch back to master: feature branch created from master done with the feature branch and it's time to merge it back to master the merge ...
0
votes
1answer
14 views

How to integrate Percy.io with Gerrit (Repository Integrations)?

I am working on a Visual Regression Testing project, that requires Percy. I followed the instructions for Repository Integrations. The instructions only show 'Connect your GitHub or GitLab ...
-1
votes
0answers
12 views

Register Email on Gerrit but receiving internal 500 error

please help with the problem below. I'm trying to register my github email on gerrit code review, but it keep throwing 500 internal server error. Does anyone know the solutions to approach this issue?...
0
votes
1answer
22 views

Gerrit can't display verified and code-review label at same time

I'm using Gerrit 2.16.2. I configured the Gerrit on gui. I added "Label Verified" and "Label Code-Review" permissions with group Administrators in Reference: refs/head/* by administrator user. But ...
1
vote
0answers
19 views

Installing Gerrit on Linux | unknown key type ed25519

I am trying to install Gerrit on a linux server, I downloaded the war file and run the command java -jar gerrit*.war init --batch --dev -d ~/Gerrit/gerrit_testsite and this is the output Generating ...
0
votes
1answer
21 views

how query gerrit patch numbers for topic or hashtags with spaces

tried all variants, not one working. got topic with name "test 1" and hashtag "test 1", trying to retrieve all patch numbers for them, not 'topic' or 'hashtag' option worked : ssh -p 29418 myserver ...
1
vote
2answers
18 views

Can I save a list of reviewers in Gerrit?

Gerrit 2.13.8-4-gb79a18cfff-dirty I just joined a new project. Every time I push committed code to Gerrit I need to manually feed it a list of reviewers for my ticket/issue. Is there any way I can ...
0
votes
0answers
25 views

`git-review` after `git commit --amend -F file` - a new review?

I used to do git amend in the following simple way git commit --amend. Recently I started using message from file option (-F), like so: git commit --amend -F my_git_message.txt. My workflow includes ...
0
votes
0answers
15 views

Problems with Gerrit UI

There is some problems with Gerrit web UI after installing under Centos7. UI is like 'empty', as example there is no groups adding link present. Login with admin. What I must to do, I have no idea, ...
0
votes
0answers
6 views

Include dependency information in gerrit REST api?

The command line tool for gerrit has a --dependencies parameter for the query command. I cannot find the equivalent option for the REST api. Instead, it appears I need to construct this information ...
0
votes
0answers
30 views

Error “Invalid committer” when trying to raise a gerrit

I'm not able to raise a gerrit. I'm getting the following error Counting objects: 13, done. Delta compression using up to 8 threads. Compressing objects: 100% (12/12), done. Writing objects: 100% (13/...
0
votes
1answer
19 views

Cannot access changes and create projects

Tried gerrit 2.15 and 2.16.6. I'm trying to migrate an existing gerrit instance to another hardware. There is an AOSP mirror with old changes and database. I've moved everything to the new hardware ...
0
votes
0answers
182 views

ssh_exchange_identification: Connection closed by remote host x

Environment: Ubuntu-14.04-LTS Git Version – 1.9 Problem: From the Ubuntu terminal when we run ssh -Tvvv -p 29418 [email protected] it fails with below error. Error: OpenSSH_6.6.1, ...
0
votes
0answers
21 views

Multipatch review: How to integrate reviews on different repository in one jenkins job

I have use case where there are dependent reviews i.e there are changes in 2 different repositories which are dependent. I need to build on both of them but as combined review. which jenkins job ...
0
votes
1answer
24 views

Gerrit Code Review - Retrieve file content from Change Edit

Has anyone successfully constructed the correct url to retrieve the file content from this endpoint? All my attempts have resulted in a status 404. The documentation is confusing in this link ...
3
votes
2answers
118 views

Recommendations for a good peer code review tool? [closed]

I'm looking for a good peer code review tool where I can choose which users are most appropriate for my review (although others can self join), and keeps track of changes which essentially update the ...
1
vote
1answer
27 views

Hide Jenkins comments in Gerrit

I have a Jenkins setup to be triggered by Gerrit once a patch is updated. I am looking for a way to hide all the messages generated by Jenkins to concentrate on the reviewer's comments. Messages from ...
0
votes
1answer
13 views

Change Destination Branch for a Commit

Can I change the "destination-branch" for a Code Review on Gerrit? For example, the incoming change request is configured to merge into develop, but I see this will break things. Can I change the ...
-1
votes
1answer
48 views

Gerrit Format Patch

What is the difference between gerrit "Format Patch" and "Checkout" options ? Basically I want all changes of a commit to my local directory without making a new commit in my local repo.
0
votes
0answers
25 views

Gerrit does not allow to clone repository

I have Gerrit locally, created an admin user and have tested ssh connection with: ssh -vv -p 29418 [email protected] Next, i created a project ssh -p 29418 [email protected] gerrit create-project ...
0
votes
0answers
25 views

Migrate git repository from Gitlab-CE to Gerrit - Cannot access each repository home page

I had to move some of the git repositories from Gitlab-CE to Gerrit. Since both Gitlab-CE and Gerrit were setup on the same server, I simply copied the .git folders to Gerrit_SETUP/git folder. Then I ...
0
votes
1answer
52 views

Gerrit replication to github fails w/ TransportException: Auth fail

I'm attempting to set up the Gerrit replicate plugin as follows: [remote "github"] url = [email protected]:ORGNAME/${name}.git push = +refs/heads/*:refs/heads/* push = +refs/heads/*:refs/...
-1
votes
1answer
52 views

how to use gerrit at best?

In our project we use git and gerrit. On each created GCR, job jenkins start executing some checks on the code. My problem is how to use gerrit. Let me explain better, we currently work this way: I ...
0
votes
0answers
16 views

mnemonic for gerrit's port 29418

I can never remember the gerrit's ssh port number 29418 to pass it through firewalls. I cannot connect it mentally with anything. Is there any anecdote or any mnemonic for that? Or any idea why was ...
-1
votes
2answers
49 views

Jenkins pipeline cannot push to gerrit using credentials

I'm new to jenkins pipeline script, and I'm trying to use the maven release plugin in my pipeline. But I'm facing some problem during the push step of the release. Here is my code : node('linux') { ...
1
vote
4answers
49 views

how to add a multiline comment go gerrit review?

I am trying to add a multi-line comment using the following code but this fails with error shown below, any guidance on how to fix it? message = """PLEASE RESOLVE MERGE CONFLICTS WHAT DO ...
0
votes
0answers
23 views

Cant Click File Changes in Gerrit Web-UI

i have a Gerrit Code Review Server for a project im currently working on, im kind of new to Server setups.. i can't click the file changes in changes Web-UI(New, Merged Or Abandoned) it just loads an ...
1
vote
3answers
73 views

rename a branch in gerrit

I have a change in Gerrit review in my current branch name called "foo". I want to change the branch name to "bar", so I've used following command. $ git branch -m bar and then I did the git amend ...
2
votes
1answer
34 views

How to decide gerrit code review rest api responses

I've read this for querying gerrit https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html But even in the examples in the document the response from gerrit has this garbled string ...
0
votes
1answer
21 views

Tag revision value shown on Gerrit is different from the commit the tag points to

On the Gerrit page, I see the Revision name/value of a tag to be below: Tag Name Revision r2.5.7_01232019 469043b4b5675d7c4a518d3cf94bf10ff8d084c4 (gitweb) But when I do git show r2.5....
0
votes
0answers
112 views

Problem with yahoo openid authentication. Could not connect to the requested server host

Using yahoo openid auth in my gerrit installation. Everything was working fine this morning but now I am unable to login to gerrit with yahoo openid. I see error in gerrit: Provider is not ...
0
votes
1answer
29 views

How to get a list of Gerrit changes that were self-reviewed

In our Gerrit setup, it is possible that the author of a change gives his or her own change a +2 review (which is the default behavior of Gerrit). We would like to keep this behavior, but we would ...
1
vote
3answers
109 views

How to rebase all commits of a Gerrit review at once without losing +2 votes?

I have a change with several commits, e.g.: last second first I have received +2 for merging, but unfortunately master has moved, and one of the commits shows as "merge conflict", so I can't submit ...
0
votes
1answer
17 views

How to get number of lines added and deleted to/form the code in Gerrit?

Imagine a code is being developed by different contributor. How to calculate the number of lines added and deleted to/from the code in Gerrit?
0
votes
1answer
45 views

How to calculate the percentage of contribution from each contributor to words the Code in the Git or Gerrit? [closed]

scenario is ... imagine a project development is going on, and lot of contributors are adding and editing the code... By making use commits and reviews,how to get number of line added and deleted to/...
0
votes
1answer
58 views

How to skip Jenkins job triggered by gerrit patchset based on commit msg

Is it possible to skip jenkins job if there is a specific word in the COMMIT_MSG? I have configured my gerrit waiting for the following things (see below) and I would like to skip the flow in case I ...
1
vote
1answer
62 views

How can I avoid Gerrit permission issues and migrate a GitHub repository to Gerrit?

I'm moving a GitHub project to Gerrit. I'm doing the following: Making a new project in Gerrit with no initial commit set Cloning the repo from GitHub onto my local machine. cd-ing into the repo ...
0
votes
1answer
14 views

Search Gerrit changes by user access rights

We have a Gerrit with quite a huge namespace and projects environment and every project has different rights in a matter of code-review or workflow voting and submitting. I sometimes create a set of ...
0
votes
1answer
17 views

gerrit bypassing existing git server-side hooks

I have git server-side hooks (update and post-receive) on a remote repo that I want gerrit to use. Gerrit documentation says that gerrit doesn't support the standard git server-side hooks and has ...
0
votes
1answer
25 views

How to make a branch review with Gerrit

I'm choosing a free tool to enforce code-review, I'm thinking about gerrit. The idea is to review the code of a branch with multiple changes (commits). How can I do a branch review with gerrit? The ...