Jenkins Text-finder无法成功完成我的构建 [英] Jenkins Text-finder unable to success my Build

查看:297
本文介绍了Jenkins Text-finder无法成功完成我的构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是usnig SSH插件,用于在Linux服务器上运行命令,我使用SSH启动了一个脚本,该脚本需要1个小时以上的时间才能运行,我不想等待那么多时间,所以我将30秒钟的时间设置为Exec超时.但它显示错误 错误:发布时发生异常,异常消息[Exec超时或在30,000毫秒后被中断] 而且很不稳定. 我不想使我的构建不稳定,因为我使用了詹金斯(Jenkins)文本查找器来稳定该构建.在那个詹金斯文本查找器中,我搜索了正则表达式中的字符串为发布时异常". 但是我的构建仍然不稳定. 请帮助我解决这个问题.

I am usnig SSH plugin to run commands on Linux server, i started one script using SSH that script takes more than 1 hr time to run , i dont want to wait that much time so i put 30 sec time at Exec time out . But it showing error ERROR: Exception when publishing, exception message [Exec timed out or was interrupted after 30,000 ms] and it is unstable. I dont want to unstable my build , for that i used Jenkins text finder to stable this build . In that jenkins Text finder i searched the string in Regular expression is "Exception when publishing " . But still my build is unstable. please help me in this issue.

推荐答案

您已设置

You've set a timeout for Publish over SSH Plugin which has nothing to do with your build step (which is - or should be - Execute shell Script on remote host using SSH). You probably have a Send build artifacts via SSH post-build step that then fails due to that timeout.

此处的困惑在于,通过SSH插件发布 SSH插件的选项在同一部分中设置.

The confusion here is that options for Publish over SSH Plugin and SSH Plugin are set in the same section.

这篇关于Jenkins Text-finder无法成功完成我的构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆