diff --git a/playbooks/zuul/bootstrap-test-review.yaml b/playbooks/zuul/bootstrap-test-review.yaml index a3d697d5c7..cc204e2541 100644 --- a/playbooks/zuul/bootstrap-test-review.yaml +++ b/playbooks/zuul/bootstrap-test-review.yaml @@ -99,9 +99,13 @@ pushd All-Projects + # Setup change id hook. Adapted from Zuul quickstart setup. + f="$(git rev-parse --git-dir)/hooks/commit-msg"; curl -o "$f" http://localhost:8081/tools/hooks/commit-msg ; chmod +x "$f" + echo "{{ group_json.id }} CI-tools" >> groups # noqa 203 git commit -a -m "Add CI-tools group" - git push origin HEAD:refs/meta/config + git push origin HEAD:refs/for/refs/meta/config + ssh -i /root/.ssh/id_25519 -p 29418 -l 'admin' localhost gerrit review -l Code-Review=2 --submit -p All-Projects 1,1 cat >> project.config << EOF [label "Verified"] @@ -115,11 +119,14 @@ description = CI result votes. Maximum required to merge and is provided by the Zuul's gate queue. submittableIf = label:Verified=MAX AND -label:Verified=MIN canOverrideInChildProjects = false + [access "refs/*"] + push = +force group Administrators [access "refs/heads/*"] label-Verified = -2..+2 group CI-tools EOF git commit -a -m 'Update All-Project configuration' - git push origin HEAD:refs/meta/config + git push origin HEAD:refs/for/refs/meta/config + ssh -i /root/.ssh/id_25519 -p 29418 -l 'admin' localhost gerrit review -l Code-Review=2 --submit -p All-Projects 2,1 popd @@ -238,20 +245,6 @@ curl -Lo .git/hooks/commit-msg http://localhost:8081/tools/hooks/commit-msg chmod u+x .git/hooks/commit-msg - cat >file-1.txt <file-2.txt <file-3.txt <file-4.txt <file-5.txt < 3.11 upgrade #- system-config-upgrade-review: # dependencies: @@ -220,6 +225,11 @@ - name: opendev-buildset-registry - name: system-config-upload-image-gerrit-3.10 soft: true + - system-config-run-review-3.11: + dependencies: + - name: opendev-buildset-registry + - name: system-config-upload-image-gerrit-3.11 + soft: true - system-config-run-refstack: dependencies: - name: opendev-buildset-registry diff --git a/zuul.d/system-config-run.yaml b/zuul.d/system-config-run.yaml index 7751f55a95..eece6f7647 100644 --- a/zuul.d/system-config-run.yaml +++ b/zuul.d/system-config-run.yaml @@ -1103,6 +1103,15 @@ vars: zuul_test_gerrit_version: '3.10' +- job: + name: system-config-run-review-3.11 + parent: system-config-run-review-base + description: | + Run the playbook for gerrit 3.11 (in a container). + requires: gerrit-3.11-container-image + vars: + zuul_test_gerrit_version: '3.11' + # Disabled until we can test the 3.10 to 3.11 upgrade #- job: # name: system-config-upgrade-review