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.

2033 questions
0
votes
1 answer

TypeError: string indices must be integers while Using Gerrit rest API for extracting data in pyspark

I'm getting the error mentioned above when I'm trying to fetch the data over gerrit rest API. The code is as follows: from requests.auth import HTTPBasicAuth from pygerrit2.rest import GerritRestAPI import os auth = HTTPBasicAuth('user', 'pass')…
Ankur Thakur
  • 35
  • 1
  • 5
0
votes
1 answer

gerrit prolog submit rule condition check

We are using gerrit 2.11 to add manager-approval label if inserted code over defined threshold. the prolog rules.pl as below. I can remove "Manager-Approval" using line 7 and commented line 8; but if commented line7 and active line 8,…
arden
  • 215
  • 3
  • 13
0
votes
1 answer

How do I fold directories in Gerrit project view?

In Gerrit Code Review you can view a list of all projects in Projects > List. The projects are listed as one long list that is organised alphabetically. If you have a large number of projects, it quickly becomes cluttered and it is difficult to…
NZD
  • 1,780
  • 2
  • 20
  • 29
0
votes
1 answer

Getting Self existing commits from master branch doesn't create merge conflict Gerrit

I am learner to Gerrit. We have started using Gerrit code review. But we are facing some problems. We are following below process in Gerrit for code review. We have two branches. One is master and other is refs/for/master.We have checked out master…
sdindiver
  • 491
  • 1
  • 5
  • 19
0
votes
2 answers

[pygerrit2]HTTPError: 401 Client Error: Unauthorized for url:

I am using pygerrit2 to authenticate to my gerrit server and running into below error, the username and password are correct as I use the same to login manually from gerrit UI,why am I getting this error and how to fix it? from pygerrit2 import…
user3508811
  • 847
  • 4
  • 19
  • 43
0
votes
1 answer

Is there a Gerrit API that can tell me if a user has a specific permission to a ref?

I have seen the documentation for Gerrit's check.access API, but it does not seem to work at all as described when trying it out with the gerritcodereview/gerrit:2.15.2 docker image. For example, the documentation says that if I pass permission, I…
Ragesh
  • 2,800
  • 2
  • 25
  • 36
0
votes
1 answer

How to limit access of Project Owner

is there a way in Gerrit to either: Limit access of Project Owner to read-only Make certain API calls while not being a Project Owner. To be more specific, I'm interested in two calls: GET projects//branches//reflog/ and GET…
G.M
  • 653
  • 1
  • 15
  • 35
0
votes
1 answer

ssh -p 29418 throws this error: Permission denied (publickey). but without port 29418 it works fine

I have seen plenty of solutions on this particular error on the web. However, none of them seem to correctly answer my question - It works fine without the port 29418, why? Not sure what am I missing. ERROR CASE: $ ssh -p 29418 gerrit@9.126.191.111 …
Chhatrapati
  • 121
  • 1
  • 8
0
votes
1 answer

Inject all GERRIT env variables as if the Jenkins job was started by gerrit event

This SO answer has the list of environment variables which gets injected automatically when a Jenkins job is triggered by a gerrit event, but if Jenkins is started manually with a gerrit number as input parameter, how to fetch those GERRIT_* env…
rodee
  • 3,233
  • 5
  • 34
  • 70
0
votes
1 answer

How to set GIT_COMMITTER_NAME and GIT_COMMITTER_EMAIL

I am trying to set and unset the following GIT enviroment variables as below, somehow the commands dont work,what commands should I run to set these? GIT_COMMITTER_NAME GIT_COMMITTER_EMAIL Running the commands set GIT_COMMITTER_NAME="Test…
user3508811
  • 847
  • 4
  • 19
  • 43
0
votes
1 answer

Gerrit notification for commits without any action

In the Gerrit documentation there is no configuration setting, which could be used to automatically send emails if there was no action with a commit for a given period of time. There is a notification type, abandoned_changes, but it means that the…
0
votes
1 answer

Issues in commit in gerrit

I am trying to use gerrit and I am facing some issue while commit. When I am committing my changes and pushing it to branch then sometimes two code reviews get raised, one is mine and other one is of the person who is working on same branch and many…
user9966539
0
votes
1 answer

Able to sign-in any user in gerrit

Why am I able to switch to any user from the web UI. I have attached the screenshot below. If I click on admin or gerrit_user1 from any of the systems in the network I am able to login as that user.
user8070445
  • 43
  • 1
  • 7
0
votes
1 answer

Gerrit code review of git repo with submodules? Create a dependancy relationship in Gerrit?

New with Git but have a background with Mercurial. Not sure if that helps here... We have a git design repo with submodules used across a number of other designs. Their are users making changes in both the parent module and a submodule as a code…
Mick L.
  • 1
  • 1
0
votes
1 answer

No LDAP Groups being associated with Gerrit

I am trying to set up a gerrit instance that communicates with our LDAP server. I can login with ldap credentials but then I don't see any groups when I navigate to My -> Groups. I tried using the "groupMemberPatter" variable but I did get an error…
Jesse
  • 901
  • 1
  • 9
  • 25