• Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major Major
    • pipeline
    • None

      See for example this discussion about accessing the current Run and its methods; perhaps should be a predefined global variable. Would need to create a RunPickle to save it safely.

          [JENKINS-26834] Direct access to contextual [Workflow]Run

          Jesse Glick created issue -
          Jesse Glick made changes -
          Link New: This issue is blocking JENKINS-25851 [ JENKINS-25851 ]
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-26276 [ JENKINS-26276 ]

          Jesse Glick added a comment -

          Also cf. this discussion about Email Ext.

          Jesse Glick added a comment - Also cf. this discussion about Email Ext.

          The "this discussion" link in the description points to "Implemented JUnitStep ("archiveTestResults")". Is this the correct link? I'm really interested how to get the current Run in a sandboxed environment.

          Christoph Vogtländer added a comment - The "this discussion" link in the description points to "Implemented JUnitStep ("archiveTestResults")". Is this the correct link? I'm really interested how to get the current Run in a sandboxed environment.

          Jesse Glick added a comment -

          Is this the correct link?

          Yes.

          I'm really interested how to get the current Run

          It is not currently possible, hence this issue.

          Jesse Glick added a comment - Is this the correct link? Yes. I'm really interested how to get the current Run It is not currently possible, hence this issue.
          Jesse Glick made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Jesse Glick made changes -
          Remote Link New: This issue links to "PR 81 (Web Link)" [ 12150 ]
          Jesse Glick made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]

          Code changed in jenkins
          User: Jesse Glick
          Path:
          basic-steps/CORE-STEPS.md
          http://jenkins-ci.org/commit/workflow-plugin/e189f90fcd8e27a9c513f85d60e8658290ac3ebd
          Log:
          JENKINS-26834 is already implemented.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: basic-steps/CORE-STEPS.md http://jenkins-ci.org/commit/workflow-plugin/e189f90fcd8e27a9c513f85d60e8658290ac3ebd Log: JENKINS-26834 is already implemented.

            jglick Jesse Glick
            jglick Jesse Glick
            Votes:
            3 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: