How to view non-secured variable value in Bitbucket Cloud Pipelines?
Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.
Summary
This knowledge base article guides how to view non-secured variable values in Bitbucket Pipelines build logs.
Solution
To view the value of a non-secured variable in Pipelines build logs, follow these steps:
Assume the values for the variables are as follows:
1 2
test=BitbucketPipelines aws=DeployToECR
Here's a sample YAML file that demonstrates this scenario:
1 2 3 4 5 6 7 8
image: atlassian/default-image:3 pipelines: default: - step: name: 'Build and Test' script: - echo $test - echo $hello
The expected output in the pipeline logs would be as follows:
1 2 3 4
echo $test BitbucketPipelines echo $aws DeployToECR
Updated on February 25, 2025
Was this helpful?
Still need help?
The Atlassian Community is here for you.