tomtom-international / jsl

TomTom Jenkins Shared Library
Apache License 2.0
6 stars 6 forks source link

Failing Timeout Step #10

Closed eugene-davis closed 5 years ago

eugene-davis commented 5 years ago

Adds a wrapping step called failingTimeout which takes the closure given to it and passes it to a timeout step. If the timeout is exceeded, the exception is caught, and converted to an error if it is timeout, otherwise the error is rethrown. This allows a timeout to fail a job rather than abort it.