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

Step to obtain raw contextual objects

    Details

    • Similar Issues:

      Description

      Sometimes it is useful to directly work with Jenkins model objects from a Workflow, such as the FilePath representing the workspace for the enclosing node block. Currently you cannot access these. It would be useful to have a Step which just gave access to a specified contextual object (given as a String class name I suppose). Typically you would need to run in whole-script approval mode, since relevant methods on such objects are not likely to be safe to whitelist for use from the sandbox.

        Attachments

          Issue Links

            Activity

            jglick Jesse Glick created issue -
            rtyler R. Tyler Croy made changes -
            Field Original Value New Value
            Workflow JNJira [ 163223 ] JNJira + In-Review [ 181140 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-37011 [ JENKINS-37011 ]
            abayer Andrew Bayer made changes -
            Component/s pipeline-general [ 21692 ]
            abayer Andrew Bayer made changes -
            Component/s workflow-plugin [ 18820 ]
            jglick Jesse Glick made changes -
            Component/s workflow-basic-steps-plugin [ 21712 ]
            Component/s pipeline [ 21692 ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "PR 25 (Web Link)" [ 14971 ]
            jglick Jesse Glick made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            jglick Jesse Glick made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]

              People

              • Assignee:
                jglick Jesse Glick
                Reporter:
                jglick Jesse Glick
              • Votes:
                2 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: