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:
The list of accepted environment variables on SSHD by default includes LC_*. Thus:
LC_*
LC_MY_BUILDN="1.2.3" ssh -o "SendEnv LC_MY_BUILDN" ssh-host 'echo $LC_MY_BUILDN' 1.2.3