当前位置:网站首页>2. 成功解决 BUG:Exception when publishing, ...[Failed to connect and initialize SSH connection...
2. 成功解决 BUG:Exception when publishing, ...[Failed to connect and initialize SSH connection...
2022-06-30 02:46:00 【水滴技术】
问题描述
使用 Jenkins
构建项目时,提示下面错误:
...
SSH: Connecting from host [WIN-...]
SSH: Connecting with configuration [192.168....] ...
ERROR: Exception when publishing, exception message [Failed to connect and initialize SSH connection. Message: [Failed to connect session for config [192.168....]. Message [java.net.ConnectException: Connection timed out: connect]]]
Build step 'Send build artifacts over SSH' changed build result to UNSTABLE
Finished: UNSTABLE
原因分析
从错误信息可以看出是 Jenkins
服务器连接生产服务器未成功,需要登录 Jenkins
服务器进行问题排查。
登录 Jenkins
服务器,通过 ping
测试是否能连通生产服务器。经过测试,确实无法连通。
解决方案
Jenkins
服务器连接生产服务器通常会使用 VPN
等工具,经检查是因为 VPN
登录失败原因导致的。
重新登录 VPN
,能够连通生产服务器了。再次构建 Jenkins
项目,可以正常发布。
SSH: EXEC: completed after 15,584 ms
SSH: Disconnecting configuration [192.168....] ...
SSH: Transferred 1 file(s)
Finished: SUCCESS
边栏推荐
- Select sort
- What about punctuation in the first column of unity text
- What are the requirements for NPDP product manager international certification examination?
- c#控制台格式化代码
- Differences among digicert, SECTIONO and globalsign code signing certificates
- What is a self signed certificate? Advantages and disadvantages of self signed SSL certificates?
- What should academic presentation /ppt do?
- Global and Chinese market of subscription revenue management software 2022-2028: Research Report on technology, participants, trends, market size and share
- Global and Chinese markets for wireless security in LTE networks 2022-2028: Research Report on technology, participants, trends, market size and share
- Digicert、Sectigo、Globalsign代码签名证书的区别
猜你喜欢
[dry goods sharing] the latest WHQL logo certification application process
IBM websphere通道联通搭建和测试
High paid programmers & interview questions series 63: talk about the differences between sleep (), yield (), join (), and wait ()
什么是自签名证书?自签名SSL证书的优缺点?
什么是证书透明度CT?如何查询CT logs证书日志?
隐藏在科技教育中的steam元素
Insert sort directly
打造創客教育中精湛技藝
Precautions for purchasing wildcard SSL certificate
如何在 JupyterLab 中把 ipykernel 切换到不同的 conda 虚拟环境?
随机推荐
Heavy attack -- ue5's open source digital twin solution
Unity timeline data binding
SQLite use
Multi card server usage
可视化HTA窗体设计器-HtaMaker 界面介绍及使用方法,下载 | HTA VBS可视化脚本编写
2.8 【 weight of complete binary tree 】
重看《Redis设计与实现》后记录几个要点
什么是X.509证书?X.509证书工作原理及应用?
What about punctuation in the first column of unity text
Global and Chinese markets for wireless security in LTE networks 2022-2028: Research Report on technology, participants, trends, market size and share
Matlab code running tutorial (how to run the downloaded code)
Global and Chinese market of mobile commerce solutions 2022-2028: Research Report on technology, participants, trends, market size and share
CMake教程系列-02-使用cmake代碼生成二進制
C console format code
Some configuration details about servlet initial development
A quick look at the statistical data of 23 major cyber crimes from 2021 to 2022
Software testing skills, JMeter stress testing tutorial, transaction controller of logic controller (25)
Creating exquisite skills in maker Education
Bubble sort
(图论) 连通分量(模板) + 强连通分量(模板)