Jenkins之Failed to connect to repository

GitLab+Jenkins持续集成+自动化部署在这里插入图片描述按照上述提示在对应服务器输入一下代码

[root@localhost My-freestyle-job]# /usr/bin/git ls-remote -h git@192.168.0.31:eetrust/uap.git
The authenticity of host '192.168.0.* (192.168.0.*)' can't be established.
ECDSA key fingerprint is SHA256:h6Oat9ScX90yd0EpHlQ//A6PT+fkgdyn6mjcZgcjUU4.
ECDSA key fingerprint is MD5:66:40:d7:4e:a7:5a:6a:ab:5b:86:6d:c3:37:24:7d:ec.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.0.*' (ECDSA) to the list of known hosts.
5393c137090e3c9c0f81dbc6e3f739535ec448ae        refs/heads/master
看到文件已经同步到jenkins中
[root@localhost My-freestyle-job]# ll
总用量 8
-rw-r--r--. 1 root root 2335 2月  21 17:20 pom.xml
-rw-r--r--. 1 root root 1776 2月  21 17:20 pom.xml.bak
drwxr-xr-x. 3 root root   18 2月  21 17:20 src
drwxr-xr-x. 5 root root   63 2月  21 17:20 target
Started by user admin
[EnvInject] - Loading node environment variables.
Building in workspace /var/lib/jenkins/workspace/My-freestyle-job
Cloning the remote Git repository
Cloning repository git@192.168.0.*/uap.git
 > /usr/bin/git init /var/lib/jenkins/workspace/My-freestyle-job # timeout=10
Fetching upstream changes from git@192.168.0.*:*/uap.git
 > /usr/bin/git --version # timeout=10
 > /usr/bin/git fetch --tags --progress git@192.168.0.*/uap.git +refs/heads/*:refs/remotes/origin/*
 > /usr/bin/git config remote.origin.url git@192.168.0.31:eetrust/uap.git # timeout=10
 > /usr/bin/git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
 > /usr/bin/git config remote.origin.url git@192.168.0.31:*/uap.git # timeout=10
Fetching upstream changes from git@192.168.0.*:*/uap.git
 > /usr/bin/git fetch --tags --progress git@192.168.0.*:eetrust/uap.git +refs/heads/*:refs/remotes/origin/*
 > /usr/bin/git rev-parse refs/remotes/origin/master^{commit} # timeout=10
 > /usr/bin/git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision 5393c137090e3c9c0f81dbc6e3f739535ec448ae (refs/remotes/origin/master)
 > /usr/bin/git config core.sparsecheckout # timeout=10
 > /usr/bin/git checkout -f 5393c137090e3c9c0f81dbc6e3f739535ec448ae
Commit message: "Initial commit"
First time build. Skipping changelog.
[My-freestyle-job] $ /bin/sh -xe /tmp/jenkins5826789700439418225.sh
+ pwd
/var/lib/jenkins/workspace/My-freestyle-job
Finished: SUCCESS
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值