We have a problem regarding the Workspace Directory in Jenkins. When I set the Jenkins Workspace Root directory with forward slashes (i.e. "D:/Workspaces/TestProject1"), it converts it to the backward slashes while accessing the Jenkins built-in "WORKSPACE" environment variable. So this causes build failure issues in our project. Since our ant script requires a path with forward slashes only. I tried to inject a new environment variable in Env inject plugin and this solved the issue. Note also that our build is parameterized so I can't give a custom workspace folder. Any alternative solutions ?