Predefined Variables

Predefined Variables

Several variables are defined and can be used for attributes.

NameDescriptionScope
terrabuild.configurationName of current configurationGlobal
terrabuild.environmentName of current environmentGlobal
terrabuild.branch_or_tagName of current branch or tagGlobal
terrabuild.head_commitHead commit commitGlobal
terrabuild.retrytrue if build is retried.Global
terrabuild.forcetrue if build is forced.Global
terrabuild.citrue if build is running in known CI.Global
terrabuild.debugtrue if debug is enabled.Global
terrabuild.tagTag provided by user or nothing.Global
terrabuild.noteNote provided by user or nothing.Global
terrabuild.osdarwin, windows, linux or nothing if unknown.Global
terrabuild.archarm64, amd64 or nothing if unknown.Global
terrabuild.projectId of current project if definedTarget
terrabuild.targetName of current targetTarget
terrabuild.versionVersion (hash) of current projectTarget
project.<id>.versionVersion (hash) of given project <id>Target
Last updated on