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

Expose delegate object in ClosureScript


    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core
    • Jenkins ver. 1.609.2
      Build Flow ver. 0.18 (ish)

      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.

            Unassigned Unassigned
            ssutherland Sean Sutherland
            0 Vote for this issue
            1 Start watching this issue