I'm using a build step in pipeline plugin with wait: true.
I'd like to run from Jenkinsfile - therefore sandboxed execution is needed.
After the job completes I'm trying to access the resulting 'run' object.
All the fields can be accessed fine except the 'duration' field.
Looks like a bug.