
A few things have changed and we need to fix them in one go. Use mirror for installing docker for buildset-registry While, we need to make this more systemic, that's hanging off of the mirror rework. For now, since we know all of these jobs are debian based, just set the mirror location. Replace use of zuul cloner with git clones You can never be a prophet in your own hometown. This is now broken because of the git cache rework, so just replace it. Update libjemalloc library python:slim is based on buster now, which has libjemalloc2 not libjemalloc1. Remove gerrit repo remote for submodules A recent change to the base jobs to use prepare-workspace-git broke the gerrit image builds by actually having the origin remote by /dev/null as intended. This breaks submodules because for a few of them where we don't have matching stable branches the submodule relative path behavior is actually exactly what we want. Since we don't care about the remote otherwise, remove the origin remote before doing the submodule update --init so that the submodule will clone the refs from the zuul prepared repo. Change-Id: Ieb5b6bc8711fe971ed3445c7c267306ac4616464
61 lines
2.2 KiB
YAML
61 lines
2.2 KiB
YAML
- hosts: all
|
|
tasks:
|
|
|
|
- name: Move plugin repos into gerrit tree
|
|
command: "mv -f {{ item }} ../gerrit/plugins"
|
|
args:
|
|
chdir: /home/zuul/src/gerrit.googlesource.com/plugins
|
|
loop:
|
|
- commit-message-length-validator
|
|
- hooks
|
|
- its-storyboard
|
|
- its-base
|
|
- javamelody
|
|
- replication
|
|
- reviewnotes
|
|
|
|
# There is no stable branch for download-commands and no 3.0 branch of
|
|
# singleusergroup so we need to check out the actual ref defined in the
|
|
# parent repo. The default zuul remote, file:///dev/null, doesn't work
|
|
# here because relative paths cause it to be
|
|
# file:///dev/plugins/download-commands, which isn't a thing. Removing
|
|
# the origin causes git to use relative local filesystem paths.
|
|
- name: Remove origin remote
|
|
command: "git remote rm origin"
|
|
args:
|
|
chdir: /home/zuul/src/gerrit.googlesource.com/gerrit
|
|
- name: Checkout core plugin submodules
|
|
command: "git submodule update --init plugins/{{ item }}"
|
|
args:
|
|
chdir: /home/zuul/src/gerrit.googlesource.com/gerrit
|
|
loop:
|
|
- download-commands
|
|
- singleusergroup
|
|
- name: Move additional plugin repos into gerrit tree
|
|
command: "mv -f {{ item }} ../gerrit/plugins"
|
|
args:
|
|
chdir: /home/zuul/src/gerrit.googlesource.com/plugins
|
|
loop: "{{ gerrit_additional_plugins | default([]) }}"
|
|
|
|
- name: Configure plugin bazel file
|
|
lineinfile:
|
|
path: /home/zuul/src/gerrit.googlesource.com/gerrit/tools/bzl/plugins.bzl
|
|
insertafter: "# Add custom core plugins here"
|
|
line: '"{{ item }}",'
|
|
loop:
|
|
- its-storyboard
|
|
- its-base
|
|
- javamelody
|
|
|
|
- name: Configure javamelody external plugin deps
|
|
file:
|
|
state: link
|
|
force: yes
|
|
src: javamelody/external_plugin_deps.bzl
|
|
path: /home/zuul/src/gerrit.googlesource.com/gerrit/plugins/external_plugin_deps.bzl
|
|
|
|
- name: Move build script into main gerrit source dir
|
|
command: "mv docker/gerrit/bazel/build-gerrit.sh /home/zuul/src/gerrit.googlesource.com/gerrit"
|
|
args:
|
|
chdir: /home/zuul/src/opendev.org/opendev/system-config
|