gerrit


How to assign access rights to a Gerrit project using API / SSH?


I'm looking for a way to automatically add +2 permissions for certain refs for a lot of projects in Gerrit and unfortunately it seems there are no API calls to modify access rights, only to read them. Do you have any idea how to modify refs permissions for a big amount of projects?
I'm using Gerrit 2.9.
Thanks.
One possibility would be to create a batch script to modify the project.config for those projects and commit them back to gerrit.
This is how you can checkout the project.config for the All-Projects, it works the same for other projects: http://blog.bruin.sg/2013/04/how-to-edit-the-project-config-for-all-projects-in-gerrit/
Simply put:
Create list of project you want to change
Iterate over the lest
Checkout the refs/meta/config ref
Use script to modify project.config
Commit and push back to the server
More information about the project.config: http://gerrit-review.googlesource.com/Documentation/config-project-config.html

Related Links

Buildbot nightly build is failing to checkout the branch
Serve custom commit-msg hook from Gerrit
Customize Gerrit sign in page
Gerrit rejected push for valid LDAP member
Gerrit submit change after abandoning its parent
Gerrit - Reload Plugins to incorporate changes
Adding gerrit label, but not able to see it properly in review page
Make a list inside another list in a gerrit comment
How to assign access rights to a Gerrit project using API / SSH?
How to change a patchset and push it as a new one?
Gerrit patch comparision for Sql files
How to 'reply done' in Gerrit when I address people code review comment
How to search for changesets in Gerrit than need to be rebased?
Gerrit GitBlit Plugin shows no Branch Graph
Bad permissions for Gerrit Administrator
Using REST APIs

Categories

HOME
coq
cookies
keras
openstack
magnific-popup
relay
android-4.4-kitkat
bookshelf.js
maven-3
microservices
win32gui
fsm
baqend
blueprintjs
convolution
ios-charts
bs4
webrequest
fancybox-3
quicklook
postgres-xl
php-7.1
ups
worldwind
telephony
saxon
jsdoc
viewport
firefox-webextensions
emulator
visjs
clickonce
tar
bootstrap-tour
microsoft-r
p-value
one-to-many
vision
gtrendsr
column-family
wallpaper
cloud-code
environment-modules
mapdb
disassembling
hot-module-replacement
jna
particles.js
janrain
estimote
import-from-excel
logfiles
clean-architecture
integrity
drupal-6
kbuild
epson
sonarlint-vs
contact-list
disque
blackberry-10
netmq
atk4
fouc
fscommand
tween
knuth
network-interface
phalanger
castle
undefined-reference
android-2.2-froyo
didselectrowatindexpath
prettify
xsockets.net
jplaton
html4
padarn
seed
ocunit
browser-detection
first-responder
enter
nsdatecomponents
zpt
blackberry-playbook
psi
yslow
google-friend-connect
icanhaz.js
mozilla-prism
ext3
bespin
webkit.net
kdbg
exchange-server-2003
swing-app-framework
.net-1.0
ntvdm.exe

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App