I want to be able to run a command from my machine using ssh and pass through the environment variable $BUILD_NUMBER
$BUILD_NUMBER
Here\'s what I\'m trying:
Escape the variable in order to access variables outside of the ssh session: ssh pvt@192.168.1.133 "~/tools/myScript.pl \$BUILD_NUMBER"