From 19fa480124041386d47e3807415552b92fe6b287 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Thu, 5 Dec 2024 09:42:54 -0800 Subject: [PATCH] Update quickstart for latest gerrit Gerrit has removed the ability for the admin user to directly push to All-Projects by default, which hinders our ability to bootstrap the Gerrit configuration in the quickstart. Update the setup script to create a change instead and merge it. This will have the unfortunate effect of leaving an actual change in the system that users may end up seeing during the tutorial, which may be distracting, but should not affect functionality. Change-Id: I0316d1c2ab4f2dceccf18adc2cb2fb283e3b2226 --- doc/source/examples/playbooks/setup.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/source/examples/playbooks/setup.yaml b/doc/source/examples/playbooks/setup.yaml index 6c1335e902..5de2be50e7 100644 --- a/doc/source/examples/playbooks/setup.yaml +++ b/doc/source/examples/playbooks/setup.yaml @@ -67,8 +67,10 @@ shell: | set -e git config user.email 'admin@example.com' + f="$(git rev-parse --git-dir)/hooks/commit-msg"; curl -o "$f" http://gerrit:8080/tools/hooks/commit-msg ; chmod +x "$f" git commit -a -m 'update config' - git push http://admin:secret@gerrit:8080/All-Projects +HEAD:refs/meta/config + git push http://admin:secret@gerrit:8080/All-Projects +HEAD:refs/for/refs/meta/config + ssh -i /var/ssh/admin -p 29418 -l 'admin' gerrit gerrit review -l Code-Review=2 --submit -p All-Projects 1,1 args: chdir: "{{ all_projects_repo }}"