Hello Have you tried cloning manually using the ssh key on windows?
Also, what username have you configured for your git credential on Jenkins? I faced ssh issues on windows because of change in SSH/GIT and it was necessary to set credential username to 'git' instead of the real github username. See https://issues.jenkins-ci.org/browse/JENKINS-50573 BR On Monday, 27 May 2019 16:50:59 UTC+2, Sébastien Hinderer wrote: > > Dear all, > > Recently, I wanted my slaves to fetch our GitHub repository through > authenticated ssh coneections rather than through HTTPS unauthenticated > connections. > > I created the appropriate Jenkins credential with ssh keys, replaced the > HTTPS URL of the repo by an ssh-based one and requested the use of the > newly created credential. > > On our Unix machines everything works like a charm. > > On our Windows machines, though, I get an "invalid format" message while > trying to read a .key file. > > In case it's useful, our Windows hosts are running git 2.17.0 and > OpenSSH 7.8p1. > > Many thanks in advance for any hint! > > Sébastien. > > -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ddb9de8e-9a6d-4c3a-892d-4a08c9501322%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.