Variable with path name is expanded with slashes instead of backslashes on Windows
According to the documentation the predefined variable CI_PROJECT_DIR
contains the full path where the repository is cloned and where the job is run. Unfortunately this variable is expanded with slashes instead of backslashes when running in Windows 10. Using a command line with this path will fail, because Windows needs \
instead of /
(as Linux does) as a folder level separator.
Actual: C:/Gitlab-Runner/builds/7c198aba/0/juengling/runner-test
Correct: C:\Gitlab-Runner\builds\7c198aba\0\juengling\runner-test
See my test project.
C:\Gitlab-Runner>gitlab-runner.exe --version
Version: 10.0.2
Git revision: a9a76a50
Git branch: 10-0-stable
GO version: go1.8.3
Built: Wed, 04 Oct 2017 12:39:07 +0000
OS/Arch: windows/386