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

What is the effect of deleting a branch in gerrit
Right way to resolve gerrit “pending changes” merge conflict
Buck build failing for “events-logs” Gerrit plugin (jar)
Disable direct push and allow Gerrit push
Set “topic” of multiple patches simultaneously in gerrit
Using Gerrit to restrict read access to a git branch
Is it possible to search for commit by Change-Id in Gerrit?
Why is the gerrit change-id commit-hook not a push-hook?
LDAP changed acccount Full Name is not displaying in gerrit web page
Can I change the order of verification and code review in gerrit
Is it possible to make review optional on any particular branch in gerrit?
customize logo on home page gerrit
Failed to start gerrit service
How to get previous patch in gerrit
Integrate Gitolite with Gerrit ACL.
How to display reset password link on gerrit portal?

Categories

HOME
osgi
image
keycloak
tizen
path-finding
plot
stock
gis
spring-cloud-stream
microservices
electronics
jpeg
ip
icloud
fancybox
onelogin
podio
upload
autotools
append
applepay
gitpitch
cloudkit
dacpac
volttron
rascal
quicklook
u-sql
postgres-xl
google-cloud-spanner
moonmail
google-static-maps
contextmenu
google-pagespeed
predix
devops
java-7
opennlp
chromebook
entitlements
buck
atlassian-crucible
libuv
srcset
lightswitch-2013
binary-data
bosh
.net-4.0
mpmediaquery
jmonkeyengine
serve
qwerty
angularjs-factory
bootstrapper
tasker
dynamic-reports
glew
reactive-cocoa-5
zip4j
csound
composite-key
font-size
firmata
nxt
httplistener
connect-by
angstrom-linux
qcustomplot
two-factor-authentication
wapiti
netmq
ford-fulkerson
wordml
purge
computer-algebra-systems
generic-programming
census
device-orientation
npapi
camanjs
qpainter
tt-news
google-style-guide
winddk
codeigniter-routing
id3v2
markers
flask-cors
article
hippomocks
xceed-datagrid
poller
viadeo
pyhdf
rabl
random-seed
ember-app-kit
enterprisedb
armcc
code-cleanup
netdna-api
whoosh
boost-filesystem
krl
html-input
dentrix
getresponsestream
jquery-ui-droppable
thunderbird-lightning
firefox-5
compiler-specific
zend-tool
ti-dsp
eqatec
msdev

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App