I want to install a gitlab-runner (executor shaell) on my Windows 10 box. I start the job on the gitlab server and it always ends up with the message the command "git" cannot be found (roughly translated into english).
As a matter of fact git is not part of my path.
How can I modify my PATH variable for the shell the gitlab-runner starts?
To use git on the command line in windows I usually set it with the statement: PATH %PATH%C:\Program Files\Git\bin.
Is it documented somewhere, git has to be available to the runner?
How can I see the command line the runner invokes (i.e. the call to git)?
For testing purposes I started the
gitlab-runnerlike:gitlab-runner -l debug --debug run --config config.toml --service gitlab-runnerfrom the directory where thegitlab-runner.exeand theconfig.tomlfile reside.I added the following line to the
runnerssection of myconfig.tomlfile:environment = ['PATH=%PATH%;d:/java/bin;C:/Program Files/Git/bin;c:/program files (x86)/apache-ant-1.10.1/bin']