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

Parent injected env properties not propagated to child build jobs

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • envinject-plugin
    • None
    • Ubuntu 12.04.
      ii jenkins 1.472 Continuous integration system written in Jav

      A job that uses "Prepare an environment for the run" and defines some variables either in a properties file, or inline properties, does not pass these variables to child job executions.

      I'm using "Trigger/call builds on other projects" and specifying a list of child jobs, and "Current build parameters" is checked.

      I added an 'env' at the top of the scripts for both parent and child jobs and all of the properties defined in the parent via env injected properties are not present in the child env.

      I also compared the build's "Injected environment variables" and they confirm that the parent injected properties are missing from the child env.

            gbois Gregory Boissinot
            bedge Bruce Edge
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: