-
Bug
-
Resolution: Fixed
-
Minor
-
None
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.
- links to
[JENKINS-36306] org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: unclassified field org.jenkinsci.plugins.workflow.support.steps.build.RunWrapper duration
Assignee | Original: Jesse Glick [ jglick ] | New: Anton Weiss [ antweiss ] |
Remote Link | New: This issue links to "PR 6 (Web Link)" [ 14606 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Workflow | Original: JNJira [ 173005 ] | New: JNJira + In-Review [ 199379 ] |
Component/s | New: pipeline-general [ 21692 ] |
Component/s | Original: workflow-plugin [ 18820 ] |
'duration' should be available on RunWrapper according to the documentation here:
https://jenkins.io/doc/pipeline/steps/pipeline-build-step/#build-build-a-job