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

Expose delegate object in ClosureScript

    Details

    • Type: Improvement
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: core
    • Labels:
    • Environment:
      Jenkins ver. 1.609.2
      Build Flow ver. 0.18 (ish)
    • Similar Issues:

      Description

      We've run into a limitation with the ClosureScript class where the script being run can't directly reference the delegate object itself.

      Our example is with a build flow project, where the flow script is being run as a ClosureScript with a FlowDelegate object being set as the script's delegate.
      Obviously, we can then access all the properties and methods of the FlowDelegate object, but we don't seem to have a way to access the object itself. This is equivalent to the ability to reference "delegate" in a closure.

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              ssutherland Sean Sutherland
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: