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

Using injected environment variables

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I want expose some environment variables to customTool installer, and I hope these environment variables can be from EnvInject and matrix job axes. But currently, these environment variables are injected after customTools runs, so I cannot use them.

      Is it possible to let customTools run after these environment variables get injected ? Or if we cannot do it in current version, can this be implemented in future versions ?

        Attachments

          Activity

          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          I'm not 100% sure about Label axis. IIRC they used to work.
          Regarding the EnvInject plugin, it depends on the build wrapper inclusion order. Currently it's not possible to alter the order in Jenkins core. I had a pull request for it (https://github.com/jenkinsci/jenkins/pull/1026), but I have not finished it.

          Show
          oleg_nenashev Oleg Nenashev added a comment - I'm not 100% sure about Label axis. IIRC they used to work. Regarding the EnvInject plugin, it depends on the build wrapper inclusion order. Currently it's not possible to alter the order in Jenkins core. I had a pull request for it ( https://github.com/jenkinsci/jenkins/pull/1026 ), but I have not finished it.
          Hide
          mdobrindt Michael Dobrindt added a comment -

          So Custom Tools has no way to access environment variables currently such as ${NODE_NAME} or ${BASE}? If not, what would you say the timeline is for this to make its way into the plugin?

          Show
          mdobrindt Michael Dobrindt added a comment - So Custom Tools has no way to access environment variables currently such as ${NODE_NAME} or ${BASE}? If not, what would you say the timeline is for this to make its way into the plugin?
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          > If not, what would you say the timeline is for this to make its way into the plugin?

          I am not sure I will be able to work on it in middle-term. If somebody proposes a pull request, I will be happy to review and integrate it. So feel free to contribute

          Show
          oleg_nenashev Oleg Nenashev added a comment - > If not, what would you say the timeline is for this to make its way into the plugin? I am not sure I will be able to work on it in middle-term. If somebody proposes a pull request, I will be happy to review and integrate it. So feel free to contribute

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            wjiang Wenzheng Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: