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

Error encountered while fetching: Invalid redirect to different host Git with VS 2015

I have been using git (Gerrit) from last one month with visual studio 2015 with update 3. All of a sudden I have started encountering the error "******Error encountered while fetching: Invalid redirect to different host"******. I checked different…
Rohit
  • 96
  • 1
  • 7
0
votes
2 answers

Sonar Gerrit plugin not posting comments when changedLinesOnly == true

I'm using Sonar Gerrit plugin for Jenkins and it works fine in its default mode (changedLinesOnly == false, isNew == false). However, when I'm enabling changedLinesOnly == true, all issues vanish, even those that were added in the Gerrit patch (e.g.…
0
votes
1 answer

About adding custom criteria in gerrit

We using gerrit code review tool for code review and verification. Gerrit internally allow to submit code on two criteria 1.Code-Review(-2,-1,0,+1,+2) and 2.Verified(-1,0,+1). I have to add other one my custom criteria to allow submit the code.So…
0
votes
1 answer

Gerrit reviews are visible in UI after deletion from database

I have deleted a change id and all its references from gerrit database. But the change is still visible in UI . Although clicking on the change give 500 internal server error. How can I fix it ? I want to remove the change permanently
devops
  • 1,121
  • 5
  • 20
  • 50
0
votes
2 answers

Relating two different commits from two different repos

I have 2 different repositories modified to solve 1 problem. I'd committed the changes made in each repo and pushed to gerrit for review. So I have 1 commit and 1 push for each repo. How to relate or link both commits / pushs so other people will…
fabatera
  • 324
  • 2
  • 9
0
votes
1 answer

In what way does "checkout merge its dependencies" and in what cases should it be used instead of cherry picking?

I use gerrit. I have fetched a remote repository. Now I have two options checkout or cherry-pick. I have tried the second options (cherry-pick) and the result that I got this way looks to me as I wonted (in my local repository I see my changes of…
Roman
  • 124,451
  • 167
  • 349
  • 456
0
votes
1 answer

How to recover a repository in gerrit?

I trying to restore a gerrit repo in prod environment. How can I restore a repo making sure the integrity of data on disk and database is not lost. Please suggest something
devops
  • 1,121
  • 5
  • 20
  • 50
0
votes
2 answers

Gerrit REST API, get user activity

I'm trying to monitor user commit activity (initial change commit or patching) in Gerrit using REST API. Right now I have a working example that gets all changes per user using:"changes/?q=owner:" and lists one change for each user based on the…
Peder
  • 157
  • 1
  • 1
  • 9
0
votes
1 answer

Gerrit Setup Fails With org.mariadb.jdbc.Driver not available

I have a RHEL 7 machine that I am trying to setup with Gerrit. I downloaded gerrit-2.14.6.war into /home/gerrit2. I logged into MariaDB and created a gerrit2 user (with password) and created a 'reviewdb' database. I then logged in as the gerrit2…
T Lytle
  • 177
  • 2
  • 13
0
votes
1 answer

How do I raise a review from intellij 2017 using the gerrit plugin?

I see that the plugin documentation mentions "Publish and delete draft changes" as one of the features. I have installed the plugin and have configured it to work with my corporate gerrit server and I am able to view all changes which have already…
jobin
  • 2,600
  • 7
  • 32
  • 59
0
votes
1 answer

Gerrit HEAD:refs/publish/master blocks change

When trying to upload my changes to gerrit with git review I am getting this error message: Fetching gerrit 2018-01-26 13:33:52.161429 Running: git rev-parse HEAD 2018-01-26 13:33:52.166465 Running: git show-ref --quiet --verify…
Mario
  • 335
  • 7
  • 20
0
votes
1 answer

How to concurrently work on two git/gerrit branches?

I have a situation where I need to create my branch(Say BranchB) out of a different branch(say BranchA) that is not merged yet. BranchA is up for gerrit review and modification goes on everytime in that branch. If I go to gerrit UI, I am able to see…
Deca
  • 1,155
  • 1
  • 10
  • 19
0
votes
3 answers

How to get the gerrit review id or link?

I am on branch say featureBranch which is created from master. While doing- git log --author="ankit" I get all my commit ids and change Id done on this featureBranch. How to get the gerrit review id or gerrit review link which is pushed to gerrit…
A. Gupta
  • 77
  • 2
  • 9
0
votes
1 answer

Gerrit query option to print just the first line

This script works: !#/bin/bash gerrit_query_output=$(ssh -p 29418 my_review-server.com gerrit query --format=JSON --commit-message change:66664 | head -n 1) commit_message=$(echo $gerrit_query_output | python -c "import sys, json; print…
rodee
  • 3,233
  • 5
  • 34
  • 70
0
votes
1 answer

Gerrit to Sonar Plugin ignores noIssuesScore

In our build (Jenkins Pipeline Script), the Sonar Gerrit Plugin should just add a review when there are issues. Otherwise it should just add the comment, but skip the score: sonarToGerrit( sonarURL: env.'SONAR_HOST_URL', severity: 'INFO', …
Max N.
  • 993
  • 1
  • 12
  • 31
1 2 3
99
100