Thank you for your help, the issue was that the build via the runner is done by the System and by the user via the command line.
I launched the gitlab runner with
gitlab-runner.exe install --user "username" --password "password"
and it works fine.
In case it could help someone else, to start the runner for a user, you need to grand “Log on as a service” for the user
ntrights +r SeServiceLogonRight -u username -m \\%COMPUTERNAME%
-
This reply was modified 4 years, 10 months ago by support. Reason: formatting