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

Document that buildVariables is the child environment, not parameters

    XMLWordPrintable

Details

    • workflow-support 2.23

    Description

      I found the description of RunWrapper.getBuildVariables a bit incomplete/confusing:

      > buildVariables
      >
      > for a non-Pipeline downstream build, offers access to a map of defined build variables; for a Pipeline downstream build, any variables set globally on env

      so I suggest changing it, appending:

      > Child Pipeline jobs can use this to report additional information to the parent job by setting variables in <code>env</code>. Note that build parameters are not shown in buildVariables.

      Attachments

        Issue Links

          Activity

            ringerc Craig Ringer added a comment - - edited Pull request: https://github.com/jenkinsci/workflow-support-plugin/pull/80
            dnusbaum Devin Nusbaum added a comment -

            The updated documentation was released in version 2.23 of the Pipeline Supporting APIs Plugin. Thanks for the improvement ringerc!

            dnusbaum Devin Nusbaum added a comment - The updated documentation was released in version 2.23 of the Pipeline Supporting APIs Plugin. Thanks for the improvement ringerc !

            People

              Unassigned Unassigned
              ringerc Craig Ringer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: