Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-76159

Consecutive git checkout with different credentials fails on Windows VMs with credentials helper enabled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor 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.

            Unassigned Unassigned
            phorkyas David
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: