gerrit

How to add a commit ID to a series of cherry picks?

扶醉桌前 提交于 2019-12-12 05:30:45
问题 I'm trying to contribute to the LineageOS gerrit. So essentially I cherry picked a range of commits from an upstream kernel branch... Only now, none of the cherry picked commits have a Change-ID. I know I can manually add one with a commit hook and: git commit --amend However, there are 834 or so commits... I'm also aware that I could run an interactive rebase to slightly ease my pain via: git rebase -i $FIRST_CP # Change every commit from pick to edit git commit --amend git rebase --continue

Jenkins, parameterized builds and the ability to select the required subprojects and child nodes based on variables

心不动则不痛 提交于 2019-12-12 04:22:37
问题 ( I've seen some suggestions here and elsewhere involving the NodeLabel plugin to solve similar problems, but have yet to find a solid example of how to actually USE NodeLabel for this purpose. ) Right now a gerrit trigger starts a build based on a given branch in the git repo of one of my projects. This creates ONE parent job P that uses the Parameterized Trigger plugin to spawn two more project builds (identified by two labels) on two slaves with two different OSes (X1 and Y1). Tomorrow, I

How to create custom namespace under gerrit?

不羁的心 提交于 2019-12-12 03:49:53
问题 I would like to allow developers to freely create/delete branches, push to them, force push etc. But I dont want any developer to delete by accident or force push to master or any Release branch. From documentation I suspect this can be achived by creating custom namespace, in gerrit documentation you can find: For example, to grant the possibility to create new branches under the namespace foo, you have to grant this permission onrefs/heads/foo/* for the group that should have it. Finally,

How split a huge code to small patches in Gerrit

瘦欲@ 提交于 2019-12-12 03:06:59
问题 Currently, I want to contribute to OpenStack and I am new to Gerrit. In Gerrit, I created a new branch my_branch but actually my code is very huge. Please kindly let me know how I can split my code to smaller changes with the same branch my_branch . 回答1: Pleaas tray git gui tools - citool, gitk. git citool gives possibility to choose which files and even which lines you put in new commit. Very useful maybe also gitk command which show your commits tree. gitk gives also posibility to run some

Gerrit doesn't accept newly created change/branch

醉酒当歌 提交于 2019-12-11 23:23:09
问题 I have just created a new change, that I wish to pull to Gerrit. I did it (I hope) the usual way, i.e. create new branch, do magic , commit. Now, I want to push changes to Gerrit. So... git checkout 82-changes-and-fixes-to-files-view git push origin HEAD:refs/for/82-changes-and-fixes-to-files-view (crunch, crunch) ! [remote rejected] HEAD -> refs/for/82-changes-and-fixes-to-files-view (branch 82-changes-and-fixes-to-files-view not found) Branch not found? Hm... Something came to my mind, that

git remote merge commit causing false dependencies in gerrit

陌路散爱 提交于 2019-12-11 23:18:07
问题 I am working with a remote branch in git. Before doing any work, I do a git pull to get the ToT. When I look at the git log, I see that this automatically creates a merge commit with a message: "Merge branch 'master' of ssh://myserver:1111/mybranch". Then, I do my work and commit my change. After that I push my change up. Our system is setup with gerrit for code review. My new change shows up in gerrit with dependency on the merge commit. How do I get rid of this? 回答1: It is likely that the

Why Gerrit is accepting pushes, it can't handle?

旧街凉风 提交于 2019-12-11 20:29:01
问题 Following comments to this answer and information if Gerrit's docs. If adding proper refs is mandatory: git push gerrit HEAD:refs/for/master Then why Gerrit is accepting at all a push without them? After doing git push origin master with proper refs missing, push is accpeted (at Git level), but no change is created (at Gerrit level). User is ending up with a mess in code review system (can't merge non-existing change, can't push nothing else, because he or she is getting no changes reject)

git push when commit --amend is done

妖精的绣舞 提交于 2019-12-11 19:13:18
问题 I have done the following git commit git push origin HEAD:refs/for/master I have received message similar to below: remote: Resolving deltas: 100% (8/8) remote: Processing changes: new: 1, refs: 1, done remote: remote: New Changes: remote: https://gerrit.ericsson.se/abcde remote: To ssh://gerrit.ericsson.se:29418/platform/cpp/control.git * [new branch] HEAD -> refs/for/master Now in gerrit review I have received comments to change logic so did git commit --amend Now my question is if I again

How do I “upload” tags to Gerrit using repo?

被刻印的时光 ゝ 提交于 2019-12-11 18:40:46
问题 I have inherited an Android project that uses the Gerrit and Repo tools to manage the Git repositories on a VM. My normal work flow involves using the git add and git commit commands to work on my local branch and using repo sync and repo upload to update the remote. After repo upload I use Gerrit to approve changes for myself and others. This is working okay except that I cannot figure out how to upload the tags I have created on my local branch. I have tried using the git push --tags

Cannot remove gerrit trigger server from jenkins

蓝咒 提交于 2019-12-11 17:12:31
问题 Added a gerrit trigger plugin in the jenkins. While setting up a gerrit server within the gerrit trigger configuration, I cannot remove the server already configured. It simply says Cannot remove the last server! But I can edit the server details. Anyone has faced this issue? Jenkins ver. 1.653 gerrit trigger version 2.21.1 I dont have any job configured with Gerrit Trigger, and this jenkins is a fresh instance. Just have a test job 回答1: There are must be some error in that gerrit server