I'm trying to use Jenkins (Global) environment variables in my xcopy script.
${WORKSPACE} doesn't work
"${WORKSPACE}" doesn't work
'${WORKSPACE}' doesn't work
This question is related to
windows
batch-file
hudson
jenkins
In windows you should use %WORKSPACE%
.
I should this On Windows, environment variable expansion is %BUILD_NUMBER%
Source: Stackoverflow.com