Questions tagged [gerrit]

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

1
vote
1answer
22 views

Gerrit UI showing status as merge conflict even when there is no conflict

One of my outgoing review was showing merge conflict (not submitted, in process). I fetched the latest from master and then merged that with my feature branch and updated my change list on gerrit. But ...
0
votes
0answers
13 views

How to combine multiple build started Jenkins messages into one email

I am using Jenkins, Gerrit and repo for my project. Often times I make code changes that span across git repositories (all managed through repo). When I submit a CL it triggers multiple Jenkins jobs (...
0
votes
0answers
21 views

Use REST API/ssh query to find if a gerrit should be rebased, and if cleanly rebaseable

I have to find the below info about a gerrit in a python script: (1) I have to find out if it is outdated on tip. In the web UI, "Rebase change" button will be visible for this. (2) Also, ...
0
votes
0answers
8 views

Gerrit Pane not working In SAP webide and getting following error

Now I just to get an error related to Gerrit pane in SAP webide as follows. I followed the blog and set property WebIDEAdditionalData as in the documentation. Still no luck. Could you please tell ...
0
votes
1answer
39 views

pushed code to gerrit after cherry-pick by mistake

My code is based on a cherry-pick I have done to another patch. I pushed it by mistake as the other patch is not ready yet. So in gerrit I see the other patch files as well. How do I make now my ...
0
votes
1answer
20 views

Is there a way to limit the number of Jenkins builds triggered by a Gerrit merge event that was submitted using “Submit With Parents”?

After completing a series of local commits into a local branch of a project using git and Gerrit, I push that series of changes into Gerrit for review and ultimately merge. In Gerrit, I see the "...
0
votes
1answer
13 views

Having count of open patches , but has to rename the branch

I have to rename my branch , but having lots of open patches in that branch. How to move those open patches to new branch without cherrypick. Cherrypick is one of the option , but has to cherry pick ...
0
votes
1answer
14 views

How to trigger multiple builds on a gerrit commit?

I have gerrit project integrated with Jenkins Server. When i push a commit into gerrit then a jenkins build is triggered for windows OS(configured parameter) only. Now i want the gerrit to trigger a ...
0
votes
1answer
81 views

How to migrate gerrit 2.16 to gerrit 3.0 ? “--migrate-to-note-db” is not a valid option

I upgraded to latest stable 2.* version, now following the doc, I try to upgrade from 2.16 to 3.0, and I have this error (trying to migrate from PostgresSql to NoteDB): $ java -jar gerrit-3.0.0.war ...
0
votes
0answers
18 views

fatal: Protocol Error: bad line length : this over Jenkins

I would like to ask a question regarding Jenkins, as I am getting this error while Jenkins going to fetch sub module of the repository, it was running properly but somehow it will getting this kind of ...
0
votes
1answer
71 views

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

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 ...
1
vote
1answer
30 views

Gerrit submit change to a git submodule

I have a gerrit repo with a submodule: parent submodule Now I make some change to submodule and want to push that to gerrit. Unfortunately the submodule is set up only as a git repo, not a gerrit ...
0
votes
1answer
51 views

Update cherry-picked patches to latest gerrit version

On Gerrit I have the following patch order: A (newest) B C F G H D E ... On my local git repository I have: P1 (newest) P2 P3 A B P4 C D E ... However, the patches A B C D E have all been updated ...
0
votes
2answers
32 views

Can we delete the changes(git changes) created during the test execution instead only merging/abandoning them?

I have written test cases, during the test case execution changes will be create, that changes will clean up by merging/abandoning at end. But sometimes some exceptions will raised between the merging/...
0
votes
1answer
40 views

git: Remove Change-Id for branches

I have a git repository which has two remotes, one that enforces Change-Ids and one that enforces to remove them. I have gerrit's commit-msg hook that creates a Change-Id for every commit. I also have ...
0
votes
1answer
37 views

Gerrit - error: found carriage return (CR) character in file: gradle/wrapper/gradle-wrapper.jar

I am building a Spring-Boot Application (2.1.4.RELEASE) and I am creating a Gradle Wrapper for it using gradle clean wrapper My gradle version is 5.4 What is happening is that when I try to push ...
1
vote
1answer
85 views

LineageOS Gerrit push failed: too many commits & forge committer not permitted

I am setting up a Gerrit LineageOS(fork of AOSP) server locally, but upon my push to gerrit, many of the refs are rejected, giving me the error(s): prohibited by Gerrit: forge committer not permitted ...
0
votes
0answers
33 views

How to disable parent project's “Non-Author” label in its sub projects?

I have a big trouble in Gerrit submit rules. I want to remove parent project's Non-Author-Code-Review label in my sub project, but I don't know how to write rules.pl. Could anyone help ? This is ...
0
votes
0answers
25 views

gerrit's project is empty after importing it from other git-host

I did go trough this link Import repository from git to gerrit. I was hope to get my repository (stored under gitlab) imported to gerrit. I tried to clone both 'normal' and bare repository from ...
0
votes
1answer
39 views

curl PUT returns HTTP/1/1 403 forbidden Authentication required though passing the creds

i'm trying gerrit REST API via curl. it returns me HTTP/1.1 403 forbidden error (im passing the credentials in curl) The GET works without credentials. Appreciate response. Thanks alot OS :- Ubuntu ...
0
votes
0answers
16 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 ...
2
votes
1answer
52 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
29 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
88 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
46 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
31 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
57 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
45 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
29 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 ...
0
votes
1answer
24 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
30 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
24 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
35 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
33 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
17 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
1answer
9 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
75 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
20 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
416 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
52 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
135 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
40 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
18 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
123 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
29 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
36 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
90 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
55 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 ...