Builds may sometimes fail with the error
process apparently never started in <PATH>. This seems to be most common with shell steps.
Example Log Output:
[candid] Running shell script process apparently never started in /home/jenkins-home/workspace/Multibranch-Pipeline-master/agent_tmp/durable-b23fe10b
The aforementioned pipeline console output can correspond to Exit logs. The below log message can be found in
<detailMessage>script returned exit code -2</detailMessage> <stackTrace> <trace>org.jenkinsci.plugins.workflow.steps.durable_task.DurableTaskStep$Execution.check(DurableTaskStep.java:341)</trace> <trace>org.jenkinsci.plugins.workflow.steps.durable_task.DurableTaskStep$Execution.run(DurableTaskStep.java:294)</trace>
Make sure that the Durable Task Plugin is up to date for your version of Jenkins. To resolve the example errors above, an update from 1.25 to 1.28 resolved the issue.