Share variables between build steps (SSH Exec build steps)


I set a variable in a "Command Line" step:

echo "##teamcity[setParameter name='env.testVar' value='$value']"

Then I can access the variable in other build steps (Command Line steps) simply using $testVar

Problem is I can't access the variable in a "SSH Exec" build step.

To get the content of the variable in the "SSH Exec" step, I tried:





What is the right way to achieve that?


Thanks in advance,




Please sign in to leave a comment.