Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-21592

SSH tasks won't parse variables when using underscores instead of dots.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • High
    • 8.2.0
    • 8.1.1
    • SCP and SSH tasks
    • None

    Description

      Issue Summary

      An SSH task won't parse a variable in the same way as a script task does, even though it should.

      Steps to Reproduce

      1. Create a variable called "myVar" with value "value1".
      2. In a script task, include the line
        echo ${bamboo_myVar}
        
      3. In an SSH Task, include the line
        echo ${bamboo_myVar}
        

      Expected Results

      Both tasks will print

      value1
      

      Actual Results

      The script task will print the value. The SSH task will not print anything.

      Workaround

      If possible, use dots instead:

      echo ${bamboo.myVar}
      

      Attachments

        Issue Links

          Activity

            People

              achystoprudov Alexey Chystoprudov
              pdemitrio Patricio
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: