As part of a Jenkins build process we run a couple Windows batch scripts and would like to report some information about these intermediate steps in the email that gets send
Environment variables set inside a build step do not propagate outside under the 'normal' circumstances. You can do the following:
VAR=VALUE