• Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins 1.646
      Custom Tools Plugin 0.4.4

      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 ?

          [JENKINS-32724] Using injected environment variables

          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.

          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.

          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?

          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?

          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

          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

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

              Created:
              Updated: