How to view non-secured variable value in Bitbucket Cloud Pipelines?

robotsnoindex

Platform Notice: Cloud - This article 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:

    test=BitbucketPipelines
    aws=DeployToECR
  • Here's a sample YAML file that demonstrates this scenario:

    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:

    echo $test 
    BitbucketPipelines
    echo $aws
    DeployToECR
Last modified on Mar 7, 2025

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.