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

Input steps to set their result as an environment variable

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      The most idiomatic way to use input result values in pipeline model script is to set it as an (environment) variable which subsequent steps or stages can use.

      Pipeline model doesn't have explicit variables, so this is likely the only way.

        Attachments

          Issue Links

            Activity

            Hide
            hrmpw Patrick Wolf added a comment -

            This is a problem in both Declarative Pipeline and Pipeline Script. We need to solve the underlying problem for both

            Show
            hrmpw Patrick Wolf added a comment - This is a problem in both Declarative Pipeline and Pipeline Script. We need to solve the underlying problem for both
            Hide
            abayer Andrew Bayer added a comment -

            Which means solving it in the input step, since we'll get whatever benefits from that for free elsewhere.

            Show
            abayer Andrew Bayer added a comment - Which means solving it in the input step, since we'll get whatever benefits from that for free elsewhere.
            Hide
            abayer Andrew Bayer added a comment -

            Switching this over to JENKINS-38394 which is a more general-purpose version of this.

            Show
            abayer Andrew Bayer added a comment - Switching this over to JENKINS-38394 which is a more general-purpose version of this.
            Hide
            michaelneale Michael Neale added a comment -

            Patrick Wolf Andrew Bayer don't you think this is worth solving for both?

            Show
            michaelneale Michael Neale added a comment - Patrick Wolf Andrew Bayer don't you think this is worth solving for both?
            Hide
            bitwiseman Liam Newman added a comment -

            Bulk closing resolved issues.

            Show
            bitwiseman Liam Newman added a comment - Bulk closing resolved issues.

              People

              Assignee:
              abayer Andrew Bayer
              Reporter:
              michaelneale Michael Neale
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: