blob: d672c13a8263c8327fdc3118dff3aa5cd96e343e [file] [log] [blame]
- 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"
bazelisk_artifacts:
- bazel-bin/release.war
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
vars:
gerrit_plugin: "{{ zuul.project.short_name }}"
bazelisk_targets: "plugins/{{ gerrit_plugin }}:{{ gerrit_plugin }}"
bazelisk_test_targets: "plugins/{{ gerrit_plugin }}/..."
bazelisk_artifacts:
- "bazel-bin/plugins/{{ gerrit_plugin }}/{{ gerrit_plugin }}.jar"
zuul_work_dir: "{{ ansible_user_dir }}/src/gerrit.googlesource.com/gerrit"
- job:
name: gitiles-build
description: |
Builds gitiles
This job builds gitiles server.
Responds to these variables:
.. zuul:jobvar:: baselisk_targets
The bazelisk targets to build. Defaults to ":all".
.. zuul:jobvar:: baselisk_test_targets
The bazelisk targets to test.
required-projects:
- gitiles
- java-prettify
- jgit
pre-run: playbooks/gitiles/pre-build.yaml
run: playbooks/gitiles/gitiles-build.yaml
vars:
bazelisk_targets: ":all"
bazelisk_test_targets: "//..."
bazelisk_artifacts:
- "bazel-bin/gitiles.war"
gerrit_project_name: gerrit.googlesource.com/gitiles
gerrit_project_mapping:
gitiles: ''
java-prettify: modules/java-prettify
jgit: modules/jgit
'zuul/jobs': ''
zuul_work_dir: "{{ ansible_user_dir }}/src/gerrit.googlesource.com/gitiles"