When Jenkins invoke shell scripts, it pass its environment variables to it. Include workspace path. But file separator is Java like ('/') instead of windows like ('\').
The solution is to convert the file separator using Dos String Manipulation.
...
set SLASH_FIXED_WORKSPACE=%WORKSPACE:/=\%
set TESTS_RUNTIME=%SLASH_FIXED_WORKSPACE%\TestsRuntime
...
..
The solution is to convert the file separator using Dos String Manipulation.
...
set SLASH_FIXED_WORKSPACE=%WORKSPACE:/=\%
set TESTS_RUNTIME=%SLASH_FIXED_WORKSPACE%\TestsRuntime
...
..
Comments