linux jenkins下找不到主机问题

Running as SYSTEM

Building in workspace /var/jenkins_home/workspace/test_dep

SSH: Publishing to Java - Label Java matches expression Java

SSH: Connecting from host cadf75633427

SSH: Connecting with configuration Java ...

SSH: EXEC: STDOUT/STDERR from command if \[ ! -z "1.0.108" ; then

/n/tools/ks deploy user 1.0.1108 test ai

else

exit -1

fi] ...

Error response from daemon: Get https://registry-zhen.aliyuncs.com/v2/: dial tcp: lookup registry-shenzhen.aliyuncs.com: no such host

failed.

SSH: EXEC: completed after 200 ms

SSH: Disconnecting configuration TestJava admin ...

ERROR: Exception when publishing, exception message Exec exit status not zero. Status \[253]

Build step 'Send files or execute commands over SSH' changed build result to UNSTABLE

Finished: UNSTABLE

可以先ping试试:

ping xxx.xx.xx.com

如果报:没有域名

root@java \~# vim /etc/hosts

hosts hosts.allow hosts.deny

root@java \~# vim /etc/hosts

root@java \~# ping registry-cn-shenzhen.aliyuncs.com

PING registry-enzhen.aliyuncs.com (100.103.7.152) 56(84) bytes of data.

64 bytes from registry-shenzhen.aliyuncs.com (100.103.7.152): icmp_seq=1 ttl=102 time=0.987 ms

64 bytes from registry-shenzhen.aliyuncs.com (100.103.7.152): icmp_seq=2 ttl=102 time=0.973 ms

64 bytes from registry-shenzhen.aliyuncs.com (100.103.7.152): icmp_seq=3 ttl=102 time=0.920 ms

64 bytes from registry-shenzhen.aliyuncs.com (100.103.7.152): icmp_seq=4 ttl=102 time=0.959 ms

64 bytes from registry-shenzhen.aliyuncs.com (100.103.7.152): icmp_seq=5 ttl=102 time=0.966 ms

^C

--- registry-vpc.cn-shenzhen.aliyuncs.com ping statistics ---

5 packets transmitted, 5 received, 0% packet loss, time 4002ms

rtt min/avg/max/mdev = 0.920/0.961/0.987/0.022 ms

root@java \~# vim /etc/hosts

root@java \~# ping aliregistry-cn-shenzhen.oss-cn-shenzhen-internal.aliyuncs.com

ping: aliregistry-cn-shenzhen.oss-cn-shenzhen-internal.aliyuncs.com: Name or service not known

root@java \~# vim /etc/hosts

root@java \~# ping aliregistry-shenzhen-shenzhen-internal.aliyuncs.com

PING aliregistryshenzhen.oss-henzhen-internal.aliyuncs.com (100.118.205.94) 56(84) bytes of data.

64 bytes from aliregistry-cn-shenzhen.oss-cn-shenzhen-internal.aliyuncs.com (100.118.205.94): icmp_seq=1 ttl=102 time=1.49 ms

64 bytes from aliregistry-cn-shenzhen.oss-cn-shenzhen-internal.aliyuncs.com (100.118.205.94): icmp_seq=2 ttl=102 time=1.43 ms

64 bytes from aliregistry-cn-shenzhen.oss-cn-shenzhen-internal.aliyuncs.com (100.118.205.94): icmp_seq=3 ttl=102 time=1.39 ms

^C

--- aliregistry-henzhen.oss-shenzhen-internal.aliyuncs.com ping statistics ---

3 packets transmitted, 3 received, 0% packet loss, time 2002ms

rtt min/avg/max/mdev = 1.392/1.440/1.495/0.042 ms

root@java \~#

配置好域名,则可以继续编译,直到编译完成。

相关推荐
weifont2 小时前
自动化抓取和上架商品:能不动手,就少动手
运维·前端·自动化
拂拉氏2 小时前
【知识讲解】 Linux之动静态库的了解
linux·运维·服务器·动静态库
Fcy6482 小时前
Linux下 五种IO模型的认识与⾮阻塞IO的实现
linux·服务器·io
Mikko73 小时前
Linux 重启后日志没了?进程被 OOM 杀了去哪看?logrotate 之后日志还往旧文件写?三台真机实测日志与性能排查
linux·运维·centos
书生执笔画浮沉3 小时前
分享一个开源小工具CAdapt
linux·c·gnu·glibc·kernel·升级·灵感
光依旧3 小时前
发版就掉请求?Spring Boot优雅停机的四步
运维·spring boot·nginx·高可用·优雅停机·mcp server
mounter6253 小时前
Linux 内核热升级(Live Update)技术详解:PCI、VFIO 与 IOMMU 子系统的演进与实战解析引言
linux·linux kernel·kernel·iommu·vfio
砚凝霜4 小时前
【软考信息安全】第十九章 Unix/Linux安全分析与防护
linux·安全·unix
yichengerp4 小时前
电子行业常用erp系统有哪些?推荐适合中小电子厂的易呈erp软件,操作简单,易落地
大数据·运维·人工智能·云计算·制造
天国梦4 小时前
国密门禁品牌怎么选?2026年最新3个避坑要点
运维·服务器·数据库·python