Built-in environment variables (original) (raw)

Built-in environment variables

You can access a workflow's environment information using built-in environment variables. Built-in environment variables require no declaration and are available in every workflow execution.

User-defined environment variablesare also supported.

You can use the following built-in environment variables:

Access built-in environment variables

To access an environment variable, make a call to the sys.get_env() function in an expression, passing the name of the environment variable as a parameter. The name of the environment variable must be passed as a string.

For example, the following step assigns the value of the environment variableGOOGLE_CLOUD_PROJECT_ID to a workflow variable called projectID:

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-06-15 UTC.