How do I inspect the values of my environment variables in a job?

Overview

Environment variables at the project or organization level are masked in build outputs as their values are assumed to be sensitive (secrets).
We list a few methods below to inspect the values of these environment variables.

 

 

1. Inspect within an SSH session (recommended)

Via an SSH rerun, you can print the values (e.g., `printenv CIRCLE_TOKEN`) within the SSH session.

The values will be printed without masking.

This is the recommended way to inspect their values.

 

2. Inspect last 4 characters of the value

This is an option if your organization has disabled SSH reruns in general.

From the UI, you are able to see the last 4 characters for the environment variable's value.
Note that you cannot see the entire value within the UI, but this may be sufficient for you to cross-check.

 

Screenshot 2024-04-23 at 16.02.59.png

 

Additional Resources:

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.