Exception when publishing, exception message [Exec timed out or was interrupted after .. ms] Exception when publishing, exception message [Exec timed out or was interrupted after .. ms] powershell powershell

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.Exec timeout (ms) set to 0


Increase the timeout of SSH server configured in Manage Jenkins settings. Also the exec timeout in job configuration.


relate to Jenkins Text-finder unable to success my Build

enter image description here

  1. Into your job's configure page
  2. Roll down and In Post Steps SSH Publishers
  3. In Transfers Set, click advanced
  4. checked Exec in pty