From 01dab90bc1ded36bd8271d532948e6ccd7672d92 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Sat, 21 Nov 2020 13:29:26 -0800 Subject: [PATCH] Handle x/ prefix projects on gerrit 3.2 Gerrit seems to handle x/ for plugin extensions in polygerrit. Unfortunately we've got projects called x/* and that breaks cloning of these projects. Lets just avoid that for nwo until we can do a rename. Change-Id: Id01739725c22af9d02ac30b1653743b49a35a332 --- playbooks/zuul/gerrit/run.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/playbooks/zuul/gerrit/run.yaml b/playbooks/zuul/gerrit/run.yaml index 59eabcf726..dd7768e791 100644 --- a/playbooks/zuul/gerrit/run.yaml +++ b/playbooks/zuul/gerrit/run.yaml @@ -1,3 +1,10 @@ +- hosts: all + tasks: + - shell: | + cd /home/zuul/src/gerrit.googlesource.com/gerrit + # Disable the x/ redirection since we have x/ projects + sed -i -e 's|"/x/\*"\,$|//"/x/*",|g' java/com/google/gerrit/httpd/raw/StaticModule.java + - hosts: all roles: - role: bazelisk-build