gerrit

Jenkins doesn't fetch the correct Gerrit branch

强颜欢笑 提交于 2019-12-23 10:09:30
问题 I want jenkins to test the code for review. The jenkins job is started on a push to refs/for/master but it tries to build the origin/master branch and not the refs/changes/XX/X/X branch. Has somebody an idea what i did wrong? Log from jenkins: Triggered by Gerrit: http://localhost/13 Building on master in workspace /var/lib/jenkins/jobs/CI-JoysteerLogApi/workspace Checkout:workspace / /var/lib/jenkins/jobs/CI-JoysteerLogApi/workspace - hudson.remoting.LocalChannel@28071488 Using strategy:

Excluding author from peer reviewer list in gerrit

假装没事ソ 提交于 2019-12-23 07:56:03
问题 I'm setting up the access control for my company in gerrit and in our current internal process has cross-over between peer reviewers and coders (they tend to be the same group of people). We also want to only require 1 reviewer to peer review the code and submit it if it looks good. With the default setup any user with the +2: Looks good to me, approved option can peer review their own code. Is there any way to prevent the author from reviewing their own code, but still allow them to fully

missing Change-Id in commit message footer for git-review

喜夏-厌秋 提交于 2019-12-23 02:21:33
问题 I've cloned an empty repository from Gerrit. I've created a new branch called "new_files" and pulled an upstream into it. When I'm trying to run git-review, I get such an error: The outstanding commits are: 6d5d8ac (HEAD, new_files) Change-Id: If528f4dd29638e8c2a8d18a624a289afe390e6e2 cc81223 Merge branch 'master' of UPSTREAM into new_files d787290 (upstream/master) rename properties to dat 32d76cf rename properties to dat 73d8e05 rename data to properties e46416e Add file. 8bfcab5

Is two way sync between gerrit and github.com possible?

人走茶凉 提交于 2019-12-22 22:47:50
问题 For a project exisitng in github.com private repository, I am setting up gerrit code review. I am using the gerrit's replication plugin to keep the gerrit repository in sync with github.com. But if someone commits (say commit-a ) and pushes directly to github.com, the commit-a is overwritten in github.com, when gerrit does the replication process (because, it replicates only the things in gerrit mirror). But I want to implement a 2-way sync. Something like, whenever a push is made to gerrit,

“error.GitError: remote has no review url” encountered with Gerrit/repo

时光毁灭记忆、已成空白 提交于 2019-12-22 12:41:26
问题 I'm trying to set up Gerrit and repo for Android development in a closed shop. I had very little trouble installing a Gerrit server, but I'm getting this error at a client workstation: $ repo start Falk . $ vi AndroidManifest.xml $ git commit -m 'minor change' -a [Falk b3398ba] minor change 1 file changed, 2 insertions(+) $ repo upload . Upload project packages/apps/Calculator/ to remote branch refs/tags/android-5.1.0_r1: branch Falk ( 1 commit, Thu Mar 17 15:20:09 2016 -0700): 72aa6b93 just

Can I set push-options (git push -o “…”) in git config?

六月ゝ 毕业季﹏ 提交于 2019-12-22 12:29:10
问题 Git 2.10 introduced git push options ( git push -o "my string" ). Many command line options are configurable, and I was wondering if it was possible for this too. I was not able to find it in git-config, but perhaps I'm overlooking it. So, would it be possible to add a (set of) default push option(s), to have ... git push -o "r=joh.doe" ... the default when running ... git push ? Context: I am using this with Gerrit to directly assign changes to reviewers (documentation for reference - using

How can one take several top-level projects in Gerrit and move them under another “container” project?

半世苍凉 提交于 2019-12-21 21:27:29
问题 I have a Gerrit installation within which are several related projects (each in a git repository). Another project is coming online would also use gerrit, but for the sake of tidiness I'd like to take the existing set of projects and put them under a new super-project (so that at the top level one sees the "umbrella" projects. I'd also like to retain the data we have for this (e.g., the review history). How does one go about doing something like this? Another way of looking at this is, how

How to post votes on custom labels from jenkins gerrit trigger?

我的梦境 提交于 2019-12-21 12:40:11
问题 I'm using jenkins gerrit-trigger plugin. It does trigger the job. The problem is that after job is finished jenkins cannot send review becasue I have no 'verified' label in gerrit. I found that in configuration there is Gerrit Reporting Values section (Jenkins -> Manager -> Gerrit Trigger -> Click on your gerrit "edit" button). In that section there are hardcoded subsections for "Verify" and "Code Review". Another subsection is "Gerrit Verified Commands" with commands like: gerrit review

OpenID with Gerrit not working

寵の児 提交于 2019-12-21 12:17:49
问题 When I click to Register or Sign In using Gerrit Code Review, I get this error: Provider is not supported, or was incorrectly entered. And when I enter the URL into the OpenID field manually, it takes me to a Google page stating: The page you requested is invalid. Any clue what's happening here? EDIT : Upon further investigation, I realized that if I change the provided URL in the OpenID field to http rather than https , it will redirect me to Google properly and ask me to approve. However,

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

孤人 提交于 2019-12-21 07:37:00
问题 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 able to launch it "manually". As for my configuration, I have something like this: https://stackoverflow.com/a/18347982/2248987. Branch Specifier is $GERRIT_BRANCH and Ref Spec is $GERRIT_REFSPEC Gerrit and Git are working fines on their own. Access