Skip to main content

Expression Functions Reference

Available functions for use in ${{ }} expressions.

These functions can be used to reference dynamic values in your pipeline definitions.

Quick Reference

FunctionDescriptionResolves At
secret()Reference an organization-level secret that will be resolved at runtime by the build-planebuild-plane
stage_secret()Reference a stage-specific secret that will be resolved at runtime by the build-planebuild-plane

Functions

secret

Reference an organization-level secret that will be resolved at runtime by the build-plane.

Resolves at: build-plane

Parameters

ParameterTypeDescription
namestringThe name of the secret

Returns

string

Examples

${{ secret("STRIPE_API_KEY") }}
${{ secret("DATABASE_PASSWORD") }}

stage_secret

Reference a stage-specific secret that will be resolved at runtime by the build-plane.

Resolves at: build-plane

Parameters

ParameterTypeDescription
namestringThe name of the secret

Returns

string

Examples

${{ stage_secret("DB_PASSWORD") }}
${{ stage_secret("AWS_ACCESS_KEY") }}