| - job: |
| name: gerrit-setup |
| description: | |
| Base job for building Gerrit |
| |
| This job sets up any supplied repos which are required for any |
| kind of gerrit-related build (plugins or Gerrit itself). |
| |
| However, it does not include all of the required repos; for |
| that, see :zuul:job:`gerrit-base` which inherits from this and |
| adds branch-appropriate required-projects. |
| pre-run: playbooks/gerrit-setup/pre.yaml |
| required-projects: |
| - gerrit |
| |
| - job: |
| name: gerrit-build-base |
| parent: gerrit-base |
| description: | |
| Build Gerrit |
| |
| This job sets up submodule repos in a Gerrit tree and runs |
| bazelisk. However, it does not include all of the required |
| repos; for that, see :zuul:job:`gerrit-build` which inherits |
| from this and adds required-projects. |
| |
| Responds to these variables: |
| |
| .. zuul:jobvar:: baselisk_targets |
| |
| The bazelisk targets to build. Defaults to ":release". |
| |
| .. zuul:jobvar:: baselisk_test_targets |
| |
| The bazelisk targets to test. |
| run: playbooks/gerrit/build.yaml |
| timeout: 3600 |
| vars: |
| bazelisk_targets: ":release" |
| zuul_work_dir: "{{ ansible_user_dir }}/src/gerrit.googlesource.com/gerrit" |
| |
| - job: |
| name: gerrit-plugin-build |
| parent: gerrit-base |
| description: | |
| Builds a Gerrit plugin in-tree |
| |
| Responds to these variables: |
| |
| .. zuul:jobvar:: gerrit_plugin |
| |
| The name of the plugin to build. Defaults to the project |
| under test, but can be specified explicitly to build |
| cross-repo. |
| |
| .. zuul:jobvar:: baselisk_targets |
| |
| The bazelisk targets to build. Defaults to the gerrit_plugin |
| specified above. |
| |
| .. zuul:jobvar:: baselisk_test_targets |
| |
| The bazelisk targets to test. Defaults to |
| "plugins/{{gerrit_plugin }}/..." |
| run: playbooks/gerrit-plugin/build.yaml |
| nodeset: |
| nodes: |
| - name: testnode |
| label: debian-stretch-60G |
| vars: |
| gerrit_plugin: "{{ zuul.project.short_name }}" |
| bazelisk_targets: "plugins/{{ gerrit_plugin }}:{{ gerrit_plugin }}" |
| bazelisk_test_targets: "plugins/{{ gerrit_plugin }}/..." |
| zuul_work_dir: "{{ ansible_user_dir }}/src/gerrit.googlesource.com/gerrit" |