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

please add a way to set a process environment variable in the Jenkins scons build step

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major Major
    • scons-plugin
    • None

      I have a need to set environment variables specific to a scons build step. It is not used by Sconstruct itself, but by a python library which I call from scons, that accesses the environment variables.

      It needs to be outside the SConstruct file itself, because I use the same scons project outside of jenkins for manual builds.

      I have no way of accomplishing this, except to manage the global Jenkins configuration itself.

      (I'm also going to put in a request for this to be added at the Jenkins job level; it'd be nice if it could be added to the build step level for all types of build steps, but that seems like it might be hard because they are so different.)

          [JENKINS-12409] please add a way to set a process environment variable in the Jenkins scons build step

          I think the EnvInject plugin (https://wiki.jenkins-ci.org/display/JENKINS/EnvInject+Plugin) should fix your issue.

          Gregory Boissinot added a comment - I think the EnvInject plugin ( https://wiki.jenkins-ci.org/display/JENKINS/EnvInject+Plugin ) should fix your issue.

            gbois Gregory Boissinot
            jms_nh Jason Sachs
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: