Jenkins custom pipeline step timeout

33 views
Skip to first unread message

artyom....@aurea.com

unread,
Aug 31, 2017, 8:56:21 AM8/31/17
to Jenkins Developers
Hello, i've created custom pipeline step, but it seems like it is being interrupted after 5 minutes of work. I didn't find any information about this timeout. How can i remove/workaround it? 

Jesse Glick

unread,
Aug 31, 2017, 9:05:40 AM8/31/17
to Jenkins Dev
Nothing running inside the CPS VM thread should occupy more than a second or so. If your step takes no block argument, and _usually_ runs almost instantaneously but _might_ rarely get held up, use `SynchronousNonBlockingStepExecution`. Otherwise you must return false from `start`, and asynchronously call `StepContext.onSuccess` from another thread. More:

Reply all
Reply to author
Forward
0 new messages