Disable interactive git credentials
What does this MR do?
Disables interactive git credentials. This appears to be important for Windows, where it looks like it doesn't always detect that credential input cannot be provided.
Why was this MR needed?
CI/CD jobs are confusingly stuck if git asks for credentials interactively.
What's the best way to test this MR?
Manual test on Windows with gitlab.com/ajwalker/runner-backbench with the job:
build should fail and not ask interactively ask for credentials:
job:
runner_info:
timeout: 10
git_info:
repo_url: https://gitlab.com/jobd/jobd # some private repo
steps:
- name: script
script: [echo Hello World]
exit_code: 128
failure_reason: script_failure
On Windows, this works with a clear message in the job log: Cannot prompt because user interactivity has been disabled.
.
On MacOS, the username/password UI prompt still appears. So this is a good direction, but still doesn't solve the problem everywhere. This feels like a bug on MacOS.
What are the relevant issue numbers?
Closes #4134
Edited by Arran Walker