When executing a Pipeline script with a long-running loop that uses nested closures, a StackOverflowError occurs and the job aborts abruptly.
- Create a Pipeline job with this as the script:
- Run the job
- Wait for about an hour. For me, the loop executes nearly 4000 times before the error. Maybe easier to reproduce on a smaller stack.
Attached is the (not-very-interesting) resultant stack trace.