zuul-jobs/roles/ensure-bazel/README.rst
Paul Albertella ad7297199d Add Bazel build and ensure roles
* Build role requires build target to be specified via a variable
* Ensure role checks for a specific version of Bazel and downloads
  and installs if missing; defaults to v3.1.0 and downloading from
  bazelbuild Github, but these can be overrriden using variables
* Also installs dependencies for Bazel; only supports Ubuntu/Debian
  at present, but includes scope to extend for other platforms
* Includes test playbook and job

Change-Id: I83f198aaf20c2b3664bea6fc05edd3b4fca13a4f
2020-04-30 18:05:41 +01:00

14 lines
349 B
ReStructuredText

Download and install Bazel, if the specified version is not already present.
**Role Variables**
.. zuul:rolevar:: bazel_version
:default: '3.1.0'
The version of Bazel required.
.. zuul:rolevar:: bazel_release_url
:default: 'https://github.com/bazelbuild/bazel/releases/download'
The base URL to use when downloading Bazel releases.