From 36aa77937aeef4a51cb2254054ff343a82264d8f Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Mon, 14 Oct 2019 12:59:29 -0400 Subject: [PATCH] Add jobs to build gerrit master branch We'll use this to test the checks plugin. We have to add jgit as a repo because it's a submodule now. Change-Id: Ic7e9ad0265e136a9ac6b1147998f6eb5ee398180 --- .zuul.yaml | 76 +++++++++++++++++++++++++++++++++ playbooks/zuul/gerrit/jgit.yaml | 7 +++ 2 files changed, 83 insertions(+) create mode 100644 playbooks/zuul/gerrit/jgit.yaml diff --git a/.zuul.yaml b/.zuul.yaml index 23927bd3f1..045235fe0c 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -377,6 +377,69 @@ parent: system-config-promote-image vars: *gerrit_vars_3_0 files: *gerrit_files_3_0 + +# Gerrit master jobs +- job: + name: system-config-build-image-gerrit-master + description: Build a gerrit image. + parent: system-config-build-image + pre-run: + - playbooks/zuul/gerrit/repos.yaml + - playbooks/zuul/gerrit/jgit.yaml + required-projects: &gerrit_projects_master + - gerrit.googlesource.com/jgit + - gerrit.googlesource.com/gerrit + - gerrit.googlesource.com/plugins/codemirror-editor + - gerrit.googlesource.com/plugins/commit-message-length-validator + - gerrit.googlesource.com/plugins/delete-project + - gerrit.googlesource.com/plugins/download-commands + - gerrit.googlesource.com/plugins/gitiles + - gerrit.googlesource.com/plugins/hooks + - gerrit.googlesource.com/plugins/its-base + - gerrit.googlesource.com/plugins/its-storyboard + - gerrit.googlesource.com/plugins/javamelody + - gerrit.googlesource.com/plugins/plugin-manager + - gerrit.googlesource.com/plugins/replication + - gerrit.googlesource.com/plugins/reviewnotes + - gerrit.googlesource.com/plugins/singleusergroup + - gerrit.googlesource.com/plugins/webhooks + vars: &gerrit_vars_master + docker_images: + - context: docker/gerrit/bazel + repository: opendevorg/gerrit + path: /home/zuul/src/gerrit.googlesource.com/gerrit + tags: + - master + gerrit_additional_plugins: + - codemirror-editor + - delete-project + - gitiles + - plugin-manager + - webhooks + files: &gerrit_files_master + - docker/bazel/.* + - docker/gerrit/base/.* + - docker/gerrit/bazel/.* + - playbooks/zuul/gerrit/.* + +- job: + name: system-config-upload-image-gerrit-master + description: Build and upload a gerrit image. + parent: system-config-upload-image + pre-run: + - playbooks/zuul/gerrit/repos.yaml + - playbooks/zuul/gerrit/jgit.yaml + required-projects: *gerrit_projects_master + vars: *gerrit_vars_master + files: *gerrit_files_master + +- job: + name: system-config-promote-image-gerrit-master + description: Promote a previously published gerrit image to latest. + parent: system-config-promote-image + vars: *gerrit_vars_master + files: *gerrit_files_master + # python-builder jobs - job: name: system-config-build-image-python-builder @@ -1014,6 +1077,12 @@ soft: true - name: system-config-build-image-gerrit-base soft: true + - system-config-build-image-gerrit-master: + dependencies: + - name: system-config-build-image-bazel + soft: true + - name: system-config-build-image-gerrit-base + soft: true - system-config-build-image-haproxy-statsd - system-config-build-image-python-base - system-config-build-image-python-builder @@ -1067,6 +1136,12 @@ soft: true - name: system-config-upload-image-gerrit-base soft: true + - system-config-upload-image-gerrit-master: + dependencies: + - name: system-config-upload-image-bazel + soft: true + - name: system-config-upload-image-gerrit-base + soft: true - system-config-upload-image-haproxy-statsd - system-config-upload-image-python-base - system-config-upload-image-python-builder @@ -1081,6 +1156,7 @@ - system-config-promote-image-gerrit-2.15 - system-config-promote-image-gerrit-2.16 - system-config-promote-image-gerrit-3.0 + - system-config-promote-image-gerrit-master - system-config-promote-image-haproxy-statsd - system-config-promote-image-python-base - system-config-promote-image-python-builder diff --git a/playbooks/zuul/gerrit/jgit.yaml b/playbooks/zuul/gerrit/jgit.yaml new file mode 100644 index 0000000000..30726b33a8 --- /dev/null +++ b/playbooks/zuul/gerrit/jgit.yaml @@ -0,0 +1,7 @@ +- hosts: all + tasks: + + - name: Checkout jgit submodule + command: "git submodule update --init modules/jgit" + args: + chdir: /home/zuul/src/gerrit.googlesource.com/gerrit