Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-36306

org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: unclassified field org.jenkinsci.plugins.workflow.support.steps.build.RunWrapper duration

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: pipeline
    • Labels:
      None
    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

            Hide
            antweiss Anton Weiss added a comment -

            'duration' should be available on RunWrapper according to the documentation here:
            https://jenkins.io/doc/pipeline/steps/pipeline-build-step/#build-build-a-job

            Show
            antweiss Anton Weiss added a comment - 'duration' should be available on RunWrapper according to the documentation here: https://jenkins.io/doc/pipeline/steps/pipeline-build-step/#build-build-a-job

              People

              • Assignee:
                antweiss Anton Weiss
                Reporter:
                antweiss Anton Weiss
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: