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
"""
}
}
}