title: Hudson/Jenkins $WORKSPACE variable not working on node
body: <p>So I have a <code>version.txt</code> file in my Source Control.  I check it out on master and build, and have the Set Environment Variables through a file with the File Path being
  <code>$WORKSPACE/Version.txt</code></p>
  
  <p>On the master it correctly finds the Version.txt and sets <code>MAJOR=x</code> etc.. </p>
  
  <p>When I do the same build on a slave node, with the same configuration I always get a</p>
  
  <pre><code>[envfile] Reading environment variables from file.
  [envfile] Path to file: /var/hudson/workspace/DEV_BUILD/Version.txt
  [envfile] Can not find environment file. Path to file=[/var/hudson/workspace/DEV_BUILD/Version.txt]
  </code></pre>
  
  <p>but I see earlier that:</p>
  
  <pre><code>Building remotely on cent5.5_64
  Cleaning the workspace because project is configured to clean the workspace before each build.
  server: 192.168.1.207
  [UGCS_DEV_BUILD] $ sscm get / -wreplace  -d/var/hudson/workspace/DEV_BUILD -r
  </code></pre>
  
  <p>get from main/DEV:</p>
  
  <pre><code>/var/hudson/workspace/DEV_BUILD/Version.txt
  </code></pre>
  
  <p>I am guessing <code>$WORKSPACE</code> refers to the master?  Anyone have any ideas how to get this to work on a Slave?</p>