简体   繁体   中英

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. Am using cd to a particular folder and running a shell script using 'sh '

This script usually takes around 2 hours to finish execution. The ssh task timesout after 15 minutes and exits the task. But when I see in the machine manually, the process is running.

Why doesn't the ssh task wait until the script finishes completely

According to your description, you may encountered a time out limitation of SSH task or build definition.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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