Have you tried to use ${GIT_BUILD_NUMBER} instead of %GIT_BUILD_NUMBER%?
If you do a SET command in the second Batch command block do you see the
GIT_BUILD_NUMBER set?
Is it possible to run the commands you need to in the first block where
GIT_BUILD_NUMBER appears to be working fine?
Thanks
Ma
I'm relatively new to the Jenkins world and I'm having issues with the use
of environment variables.
I'm currently running builds from code I check out from a git repository. I
inject an environment variable called GIT_BUILD_NUMBER that I pull from the
checkout and use it successfully in a Wi