微控圈（MCU Loop） - Jenkins
type: channel
link: https://www.mculoop.com/tag/Jenkins/
items: 解决向 Jenkins（ Windows） 添加 Git 仓库时报错的问题

解决向 Jenkins（ Windows） 添加 Git 仓库时报错的问题
type: item
date: 2022-04-07T02:10:00+00:00
description: 向 Jenkins（ Windows） 添加 Git 仓库时总是报错，当添加 HTTPS 仓库地址时报错： Failed to connect to repository : Command "C:\Program Files\Git\bin\git.exe ls-remote -h -- >https://git.***.com/gitlab/git.git HEAD" returned status code 128: stdout: stderr: fatal: unable to access 'https://git.***.com/gitlab/git.git/': OpenSSL SSL_connect: >SSL_ERROR_SYSCALL in connection to git.***.com:443 当添加 SSH 仓库地址时报错： Failed to connect to repository : Command "C:\Program Files\Git\bin\git.exe ls-remote -h -- >git@git.***.com:gitlab/git.git HEAD" returned status code 128: stdout: stderr: Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. [...]