Hudson/Jenkins $WORKSPACE variable not working on node
It seems that the EnvFile plugin isn't working with slaves :https://issues.jenkins-ci.org/browse/JENKINS-9546
Moreover from the comments in this JIRA, they suggest to use the EnvInject
plugin : https://wiki.jenkins-ci.org/display/JENKINS/EnvInject+Plugin
Regards,