Exception when publishing, exception message [Exec timed out or was interrupted after .. ms]
This issue can be resolved by changing the Job configuration.When using Send Files or execute commands over SSH
Click on Advanced Tab.
Set Execution Timeout(ms): 0
This will help you in avoiding the timeout exception. It has worked for me, so hopefully it will work for you too.
Increase the timeout of SSH server configured in Manage Jenkins settings. Also the exec timeout in job configuration.
- Into your job's
configure page
- Roll down and In
Post Steps
SSH Publishers
- In
Transfers Set
, clickadvanced
- checked
Exec in pty