an example pipeline

      ...
      def myBuild = build ...
      ...
      

      `myBuild` ends up in as `org.jenkinsci.plugins.workflow.support.steps.build.RunWrapper`.

      The way to get downstream build log would be by `myBuild.rawBuild...` but `rawBuild` is not whitelisted in the script security plugin. Also in the console where it can be allowed I see

      signature : method org.jenkinsci.plugins.workflow.support.steps.build.RunWrapper getRawBuild Approving this signature may introduce a security vulnerability! You are advised to deny it.

      So my request is to allow somehow getting the downstream build log without security risks.

      Thank you!

          [JENKINS-46376] Allow getting log through RunWrapper

          akostadinov created issue -

          akostadinov added a comment -

          If log is available similar to how current build log is available through the `manager.getLogMatcher` that should also do the job. The main thing is to have ability to inspect the log of the downstream build.

          akostadinov added a comment - If log is available similar to how current build log is available through the `manager.getLogMatcher` that should also do the job. The main thing is to have ability to inspect the log of the downstream build.
          Sam Van Oort made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Sam Van Oort made changes -
          Status Original: In Progress [ 3 ] New: Open [ 1 ]
          Andrew Bayer made changes -
          Assignee New: Andrew Bayer [ abayer ]
          Andrew Bayer made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Andrew Bayer made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]

          Andrew Bayer added a comment -

          Andrew Bayer added a comment - PR up at https://github.com/jenkinsci/workflow-support-plugin/pull/51 adding myBuild.log .
          Andrew Bayer made changes -
          Remote Link New: This issue links to "PR #51 (Web Link)" [ 19780 ]

          Brian M added a comment -

          Any update on this?

          The last update was on "2018-01-12 14:02"

          Brian M added a comment - Any update on this? The last update was on "2018-01-12 14:02"

            Unassigned Unassigned
            akostadinov akostadinov
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: