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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: High
    • 8.2.0
    • Affects Version/s: 8.1.1
    • Component/s: SCP and SSH tasks
    • None
    • 1
    • Severity 3 - Minor

      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}
      

            Assignee:
            Alexey Chystoprudov
            Reporter:
            Patricio (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: