Share variables between build steps (SSH Exec build steps)

Hi,

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:

$testVar

$env:testVar

%env.testVar%

 

What is the right way to achieve that?

 

Thanks in advance,

 

supermario18b

 

Please sign in to leave a comment.