Variables
Variables used in expressions have a scope and an identifier. The scope defines the source of the variable, and the identifier is the name of the variable within that scope.
Terrabuild supports the following variable scopes:
terrabuild- Predefined variables provided by Terrabuild (build context, system info, etc.)variable- Workspace variables defined in the WORKSPACE filelocal- Local values defined in WORKSPACE or PROJECT filesproject- Project properties from the project block
Here are some variable reference examples:
terrabuild.branch_or_tag- Access the current Git branch or tagvar.config- Access a workspace variable namedconfiglocal.config- Access a local value namedconfigproject.api- Access a project with identifierapi
Last updated on