It is already possible. It looks like you are using the wrong syntax. As mentioned earlier, the email-ext plugin has a special method for accessing environment variables. Instead, try putting this in the body of the message:
${ENV, var=VARNAME}
An alternative method would be to use the Hudson shell function to repeat the environment variable during assembly and parse it using BUILD_LOG_REGEX.
For example, you can get this in the Execute Shell part:
echo "Output: ${VARNAME}"
and analyze it in a letter using
${BUILD_LOG_REGEX, regex="^Output:", showTruncatedLines=false, substText=""}
Paul Andrew
source share