I want to be able to run a command from my machine using ssh and pass through the environment variable $BUILD_NUMBER
Here's what I'm trying:
ssh [email protected] '~/tools/run_pvt.pl $BUILD_NUMBER'
$BUILD_NUMBER is set on the machine making the ssh call and since the variable doesn't exist on the remote host, it doesn't get picked up.
How do I pass the value of $BUILD_NUMBER