title: Passing variables in remote ssh command
body: <p>I want to be able to run a command from my machine using ssh and pass through the environment variable <code>$BUILD_NUMBER</code></p>
  
  <p>Here's what I'm trying:</p>
  
  <pre><code>ssh pvt@192.168.1.133 '~/tools/myScript.pl $BUILD_NUMBER'
  </code></pre>
  
  <p><code>$BUILD_NUMBER</code> 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.</p>
  
  <p>How do I pass the value of <code>$BUILD_NUMBER</code> ?</p>