Some last Hudson version brought a new "Set environment variables" field in job configuration.
This environment variables not inherited or parsed by shell tasks.
One has to duplicate the needed variables in order to be used in task's script commands.
Although the job's environment variables are passed, I've only tested these: parameter variables, $WORKSPACE, $JAVA_HOME, $CLEARCASE_VIEWNAME, etc. Global Environment variables set in hudson's configuration are also correctly parsed.
I don't know if this an issue with tasks or because the "Set environment variables" field is coming after tasks definition in job's configuration view.
Thanks in advance.