With 2.32.3, workflow-durable-task-step 2.9, and workflow-cps 2.29, and this script
while (true) {
try {
node {
sh 'sleep 30'
}
} catch (e) {
echo "ignoring $e"
}
}
I do get some errors, mainly
java.io.IOException: cannot find current thread
at org.jenkinsci.plugins.workflow.cps.CpsStepContext.doGet(CpsStepContext.java:296)
at org.jenkinsci.plugins.workflow.support.DefaultStepContext.get(DefaultStepContext.java:61)
at org.jenkinsci.plugins.workflow.steps.durable_task.DurableTaskStep$Execution.logger(DurableTaskStep.java:200)
at org.jenkinsci.plugins.workflow.steps.durable_task.DurableTaskStep$Execution.check(DurableTaskStep.java:301)
at org.jenkinsci.plugins.workflow.steps.durable_task.DurableTaskStep$Execution.run(DurableTaskStep.java:276)
at …
Everything does stop cleanly and there are no recurring warnings. |