Using Git Credential Manager with Git for Windows.

251 views
Skip to first unread message

Fred Clausen

unread,
Jun 27, 2016, 9:51:52 PM6/27/16
to Jenkins Users
Hello All,

The Git for Windows distribution no longer uses the "store" or "winstore" credential store so credentials in the form of a username/password pair cannot be read from a file. I have found a way to pre-populate the Windows Credentials Manager with the Git credentials which means Git clone operations can take place non-interactively. 

However this is not quite enough because the Git plugin for Jenkins wants to use the "store" credential helper. Is there a way to tell it to use the Git Credential Manager ("manager")?

Thanks,

Fred.

Mark Waite

unread,
Jun 27, 2016, 9:56:18 PM6/27/16
to Jenkins Users
Not as far as I know.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/66889a03-4cce-4555-88a0-9273d6b8515d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Fred Clausen

unread,
Jun 28, 2016, 2:24:18 AM6/28/16
to Jenkins Users
Actually, the problem was that Jenkins runs as the Local System account instead of Administrator. This meant that I was inserting the credentials into the wrong Windows Credentials Store. I updated my Chef code[1] to run the credential insertion[2] as the System Account and then it all works fine even though the Git plugin is requesting the "store" credential helper. What ends up being used is the Git Credentials Manager from Microsoft ("manager") which uses the native Windows Credential store.

Reply all
Reply to author
Forward
0 new messages