Jenkins Git SSH keys on a slave Windows

We currently have a Jenkins wizard on Windows, ubuntu slave, and Windows slave. I am trying to configure git on a slave windows. msysgit is installed and I have included the directory in the system path variable so that I can call "git.exe" or "git.cmd" anywhere.

In my Jenkins configuration, I have credentials using the SSH private key. These powers are for Jenkins to use with Git. This works on the master node and slave Linux. I did not put the ssh private key on either of these two servers; Jenkins processed it for me.

But Windows slave is not so much. When I run a job on a Windows slave, all I get is that ERROR: Error cloning remote repo 'origin'.

How can I get credentials running on a slave Windows? Or, if you don’t think the problem is, what are the next troubleshooting steps?

+5
source share
3 answers

If you saw any other posts after this error, can you update your question to include them?

Without seeing them, I can only suspect that git on your slave Windows cannot find the folder .ssh(this folder contains your keys).

Have you looked at the notes on the Git Plugin page ?

+2
source

Please use C: \ Program Files \ git \ Cmd \ git.exe as the git environment variable to configure Windows slave in Jenkins.

1) 2) 3) Windows slave → 4) git, , .

→ → .

.

Cheers, .

0

You may need to create and populate the ssh folder in the Windows service home folder at C: \ Windows \ System32 \ config \ systemprofile.

Source: https://www.techcoil.com/blog/home-directory-of-the-localsystem-account-in-windows-server-2012/

0
source

Source: https://habr.com/ru/post/1654878/


All Articles