简体   繁体   English

TFS-“运行SSH任务”选项超时

[英]TFS - 'Run SSH task' option times out

In TFS, Am using SSH task with 'Commands' option to connect to a remote machine and run a set of few commands. 在TFS中,我将SSH任务与“命令”选项一起使用,以连接到远程计算机并运行一些命令集。 Am using cd to a particular folder and running a shell script using 'sh ' 我正在使用cd到特定文件夹并使用'sh'运行shell脚本

This script usually takes around 2 hours to finish execution. 该脚本通常需要大约2个小时才能完成执行。 The ssh task timesout after 15 minutes and exits the task. ssh任务在15分钟后超时并退出任务。 But when I see in the machine manually, the process is running. 但是当我在机器上手动看到时,该过程正在运行。

Why doesn't the ssh task wait until the script finishes completely 为什么ssh任务不等到脚本完全完成

According to your description, you may encountered a time out limitation of SSH task or build definition. 根据您的描述,您可能会遇到SSH任务或构建定义的超时限制。

First, please double check the time out setting under control options . 首先,请仔细检查控制选项下的超时设置。

Specifies the maximum time, in minutes, that a task is allowed to execute before being cancelled by server. 指定允许任务在服务器取消之前执行的最长时间(以分钟为单位)。 A zero value indicates an infinite timeout. 零值表示无限超时。

在此处输入图片说明

Another place to check is build job time out , under the settings of your build definition: Option ->Build job timeout in minutes. 检查另一个地方是建立工作超时 ,根据您的构建定义的设置:选项- >生成作业超时以分钟为单位。

Specifies the maximum time a build job is allowed to execute on an agent before being canceled by the server. 指定在服务器取消构建作业之前允许在代理上执行构建作业的最长时间。

An empty or zero value indicates an infinite timeout. 空值或零值表示无限超时。

在此处输入图片说明

If both set properly and you still get the time out, please attach more detail related build failed log with Verbose Debug Mode by setting system.debug=true for troubleshooting. 如果两者都设置正确,但是您仍然超时,请通过设置system.debug=true进行详细调试 ,在Verbose Debug Mode中附加与构建失败日志相关的更多详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM