How to find out the config and modify --working-directory after incorrect "gitlab-runner install"?
Hi guys, I'm facing with a quite tough problem. For my project, there has been execute several times gitlab-runner install to install a service without --working-directory to figure out the builds directory, and each time execute install command in different directory. So I create the new runner and install a new service with --working-directory option to remove the incorrect working directories created before. However, it wouldn't be removed, and the gitlab-runner will execute the builds job at the incorrect directories. And what's the worse is, I remove the directory manually. So, it will report the Error bellow.
Running with gitlab-runner 12.6.0 (ac8e767a)
on dst08553.xxxxx.ios qV2bEYxH
Using Shell executor...
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Running on xxxxx.xx.xxx.xxxx.com...
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Fetching changes with git depth set to 1...
fatal: Unable to read current working directory: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
bash: line 88: cd: /Users/xxxxxx/Documents/ci-script/builds/azmBsLNn/0/ibu-app/IBUiOS/builds/qV2bEYxH/0/ibu-app/IBUiOS: No such file or directory
ERROR: Job failed: exit status 1
How can I solve the problem?
Edited by NY