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/myScript.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
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…