Skip to main content
Version: 5.11.x

BazelConfiguration

Configuration for Bazel properties.

Table of contents

Properties

Properties

auto_add_bazelrc_file

auto_add_bazelrc_file: boolean = true

If true, automatically add the bazelrc file to the invocation when Workflows detects the file next to the configuration file.

If setting this at the root or workspace level, the file is resolved relative to the current workspace.


auto_bazelrc_file

auto_bazelrc_file: string = 'bazelrc'

Name of the default bazelrc file to add to the invocation. This file should be located next to this configuration file, and will be added automatically if it exists, unless BazelConfiguration.autoAddBazelRcFile is set to false.


bazel_debug_assistance

bazel_debug_assistance: boolean = false

If true, Workflows will enable a number of flags and archive extra files that can help debug a number of bazel issues on CI.


binary

binary: string = 'bazel'

The binary to use for 'bazel'.

This can be an absolute path to a binary on disk, a PATH entry, or a relative path to a vendored binary.

It can also be set to an absolute target pattern to enable building a custom CLI or bazel binary during the build, in which case the value in 'bootstrap_bazel' is used to build this target. The target must provide a single file output, and will be used for all subsequent builds in the lifetime of the task.


bootstrap_binary

bootstrap_binary: string = 'bazel'

The binary to use to bootstrap the 'from source' bazel target provided in the 'binary' property.


flags

flags: readonly string[] = []

List of Bazel flags to be applied to each invocation.


rcfiles

rcfiles: readonly string[] = []

A set of bazelrc files that will be set on each task.