0

If a pipeline timeouts currently working via SSH Agent on another host, the timeout leads not to an aborted state - it just continues. This could be a bug, maybe someone could confirm this with provided snippet below. Issue reporting on Github for SSH Agent project is disabled, dunno how to adress this to the devs in case its a bug.

        stage('test timeout') {
        options {
            timeout(time: 10 , unit: "SECONDS")
        }
        steps {
            script {
                sshagent (credentials: ['somecredentials']) {       
                    sh """
                        ssh someUser@someHost sleep 20
                    """
                }
            }
        } 
1
  • DId you find a fix for this? It seems I have the same issue Commented Sep 12 at 5:42

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.