[JIRA] (JENKINS-59935) SSH CLI command does not honour connection timeout

2 views
Skip to first unread message

egutierrez@cloudbees.com (JIRA)

unread,
Oct 25, 2019, 9:50:02 AM10/25/19
to jenkinsc...@googlegroups.com
Evaristo Gutierrez updated an issue
 
Jenkins / Bug JENKINS-59935
SSH CLI command does not honour connection timeout
Change By: Evaristo Gutierrez
Summary: SSH CLI command does not respect honour connection timeout
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

egutierrez@cloudbees.com (JIRA)

unread,
Oct 25, 2019, 9:51:02 AM10/25/19
to jenkinsc...@googlegroups.com
Evaristo Gutierrez updated an issue
https://issues.jenkins-ci.org/browse/JENKINS-36420 and https://issues.jenkins-ci.org/browse/JENKINS-55978 were implemented and they are honoured if you use the OS provided ssh client (Mac OS X at least).

However if you execute the same command through the Jenkins CLI command with the -ssh option, the timeout is ignored.

*Reproduction steps*
* Run Jenkins with the property -Dorg.jenkinsci.main.modules.sshd.SSHD.idle-timeout=0
* Create a pipeline with a sleep higher than 10 minutes:
*
{code:java}
stage('10 Minute Wait') {
    echo "Started the 10 minute wait"
    sleep(time:610,unit:"SECONDS")
    echo "The big sleep is over"
}{code}

* Build the job remotely through CLI
*
{code:java}
java -jar jenkins-cli.jar -s $MY_JENKINS_SERVER -user $USER -ssh -i "id_rsa" build $JOB
-v -s
{code}
Reply all
Reply to author
Forward
0 new messages