Can't create directory for build with windows-docker executor
Summary
The first time I run a CI task in a given repository (in this case, jakob/ci-test) on this runner, I get this error:
Fetching changes with git depth set to 50...
fatal: cannot chdir to c:/builds/jakob/ci-test: Permission denied
Cleaning up project directory and file based variables
00:04
ERROR: Job failed: exit code 128
Every subsequent time, I get fatal: cannot mkdir c:/builds/jakob/ci-test: File exists instead. That seems like it could be #1394 (closed) but it seems different enough that I'm filing this issue, feel free to tell me it's the same.
Steps to reproduce
- set up a gitlab-runner instance (version 14.8.2 (c6e7e194)) on Microsoft Windows Server 2019 Standard (version 1809, OS build 17763.2686) against gitlab enterprise version 14.2.5-ee
- register the gitlab runner with the docker-windows executor
- run any CI job
What is the current bug behavior?
(described above)
What is the expected correct behavior?
The job executes