Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-14988

Pipelines: Incorrect environment variable's value displayed

    XMLWordPrintable

    Details

      Description

      Summary

      With environment variable set as below:

      • V_NAME=my_test1
      • my_test1_id=135

      Pipelines display "0" instead of "135" with the following command:

      #!python
      
      + echo ${V_NAME}_id
      my_test1_id
      
      + echo $[${V_NAME}_id]
      0
      

      Notes

      Tried running with docker locally and below is the output:

      #!python
      root@56100f3cf9dd:/opt/atlassian/bitbucketci/agent/build# echo ${V_NAME}_id
      my_test1_id
      root@56100f3cf9dd:/opt/atlassian/bitbucketci/agent/build# echo $[${V_NAME}_id]
      135
      
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            rchia Ronald Chia
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: