-
Bug
-
Resolution: Won't Fix
-
Minor
-
None
-
Jenkins 2.516.2, on Ubuntu 24.04, with Git plugin Version 5.7.0, Git client Version 6.3.2, git on Windows node (Win 11, 10.0.26100): git version 2.41.0.windows.1 (from chocolatey)
On windows nodes consecutive git checkouts with different credentials stopped working. Just two checkouts like these:
git url: 'https://gitlab.com/some-repo.git', credentialsId: 'SomeUserNameToken'git url: 'https://gitlab.com/other-repo.git', credentialsId: 'DifferentToken'
A basic authentication error 403 is always returned for the second attempt, indicating that the credentials are somewhat falsely cached on the machine.
Indeed a workaround was to disable the credential helper on the Windows node, but the expectation was clearly that the git checkout would use the configured credential.