Restrict a Cloud Build gate to a release substitution

When a deployment trigger serves several environments, require substitutions that uniquely identify builds for this gate.

Match exact trigger substitutions#

In the environment’s Setup → Delivery, choose Add Cloud Build gate, select the repository target and identify the deployment trigger. Under Required substitutions, enter a unique name beginning with an underscore and its exact nonempty value. Select Add substitution to require another pair.

Remove the substitution row if the trigger has no release-environment substitution. Review the saved gate’s values against the actual trigger. A build with different values cannot use that gate.

Search help

Tab to a result. Enter to open. Escape to close.