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

Expose delegate object in ClosureScript

    XMLWordPrintable

Details

    • Improvement
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • core
    • Jenkins ver. 1.609.2
      Build Flow ver. 0.18 (ish)

    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

          ssutherland Sean Sutherland created issue -
          rtyler R. Tyler Croy made changes -
          Field Original Value New Value
          Workflow JNJira [ 167333 ] JNJira + In-Review [ 182687 ]

          People

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

            Dates

              Created:
              Updated: