Skip to main content
Version: 5.11.x

bazel_health_probe

Runs a health check on the Bazel server during the "runner health check" steps. This task is enabled by default.

Task configuration

id

  • string

A unique identifier for this task.

name

  • string
  • Default: The task type

A human-readable name used to identify this task. If none is set, then the task type is used.

artifact_paths

  • string[]
  • Read only

List of paths or glob pattens used to save artifacts resulting from the task run.

info

To prevent the archiving of Workflows system files, a task run never archives anything stored in the /etc/aspect directory.

cci

  • cci CircleCIConfiguration
  • Optional

Properties relating to CircleCI for the task

env

  • Map<string, string>

Environment variables to set on this task. Overrides those set globally

icon

  • string
  • Default: 'peacock'

The emoji icon used in the tasks label

queue

  • string
  • Optional

The queue / runner pool that this task runs on. By default, takes the value of the top level 'queue' property in the Workflows configuration.

timeout_in_minutes

  • number
  • Default: 180

The amount of time in minutes that this step times out after. Timed out steps cause the build to fail.

without

  • boolean
  • Default: false

Setting this excludes this task from being created when using additional workspace overrides.

bazel

Configuration properties for the bazel invocation for this task.

auto_add_bazelrc_file

  • boolean
  • Default: 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

  • string
  • Default: '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 auto_add_bazelrc_file is set to false.

bazel_debug_assistance

  • boolean
  • Default: false

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

flags

  • string[]
  • Read only

List of Bazel flags to be applied to each invocation.

Important note for warming tasks:
Do not use --sandbox_debug in the warming task flags configuration.
This will cause some unexpected permissions errors in the course of the warming run.

startup_flags

  • string[]
  • Read only

List of Bazel startup flags to be applied to each invocation..

rcfiles

  • string[]
  • Read only

A set of bazelrc files set on each task.

hooks

  • Optional

Task hooks allow execution of extra commands or scripts at different points within a task's lifecycle. For example, they can be used for setting up test databases before a test task runs, and then performing cleanup after.

id

  • string
  • Optional

Identifies a hook uniquely with the configuration. Hooks with the same ID override subsequent definitions of the same hook.

command

  • string

Script that should be run when this hook triggers. This can be a single command, or a path to a script.

soft_fail

  • boolean
  • Default: false

When true, errors from executing the hooks command are ignored, otherwise they are propagated as the tasks exit code.

type

  • enum

Type of hook this represents, i.e., when in the lifecycle of a task should this hook execute.

Possible hook types are:

  • AFTER_TASK = "after_task": Hook is run after the task runs.
  • BEFORE_TASK = "before_task": Hook is run before the task runs.