【发布时间】:2021-01-26 13:56:54
【问题描述】:
我必须从专用网络上的 git repo 结帐。我在我的系统上安装了所需的 pfx 证书,并且在提示符中提供密码后,当我连接到 VPN 时,我可以使用命令行获取/克隆 repo。但是,我不能在 Jenkins 上这样做。我尝试在 Jenkins 凭据管理器中安装 pfx,但文件甚至没有上传。 Jenkins 不再提供 vpn 插件支持。有没有办法做到这一点?
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Command "C:\Program Files\Git\bin\git.exe fetch --tags --force --progress -- ssh://root@10.247.186.70/srv/git/leaveRepo.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout:
stderr: ssh: connect to host 10.247.186.70 port 22: Connection timed out
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
【问题讨论】:
-
您是否尝试过为运行 Jenkins 服务的用户 ID 提供对 cert 目录的读取权限?
-
@Mike - 是的,我有。
标签: jenkins vpn keytool pfx pkcs#12