• 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 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.

          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.

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

          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-basic-steps-plugin/ca94eaa1c6c60199cf28f849fae624ba3e57dd09 Log: JENKINS-26834 is already implemented. Originally-Committed-As: e189f90fcd8e27a9c513f85d60e8658290ac3ebd

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

              Created:
              Updated:
              Resolved: