Quantcast

[JIRA] (JENKINS-14251) Parent injected env properties not propagated to child build jobs

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14251) Parent injected env properties not propagated to child build jobs

JIRA noreply@jenkins-ci.org
Issue Type: Bug Bug
Affects Versions: current
Assignee: Gregory Boissinot
Components: envinject, parameterized-trigger
Created: 28/Jun/12 5:56 PM
Description:

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.

Environment: Ubuntu 12.04.
ii jenkins 1.472 Continuous integration system written in Jav
Project: Jenkins
Priority: Major Major
Reporter: Bruce Edge
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14251) Parent injected env properties not propagated to child build jobs

JIRA noreply@jenkins-ci.org
Bruce Edge commented on Bug JENKINS-14251

I have a work-around, but I don't feel it should be necessary.

If I re-specify the same properties file using the "Parameters from properties file" under the "Trigger/call builds on other projects" build action, then the properties are present in the child env.

I believe that it is still a bug however that the parent's env is not propagated to the child when "Current build parameters" is checked. It should not require that I re-specify the same properties file in two places.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14251) Parent injected env properties not propagated to child build jobs

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

It is a parameterized jenkins plugin issue (enhancement).

In my opinion, the plugin need to add an option to add environment variables to the next job.

Technically:

  • Add a new dependency to envinject-lib library
  • Add a new option to parametrized values
  • If selected, add the EnvInjectAction to the schedule project method
    And that's all. The current code of the EnvInject plugin without changes has to work.
Change By: Gregory Boissinot (01/Jul/12 10:42 PM)
Issue Type: Bug Improvement
Component/s: envinject
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14251) Parent injected env properties not propagated to child build jobs

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
cjo9900 commented on Improvement JENKINS-14251

Environment injected parameter created following Gregory's comments.

https://github.com/jenkinsci/parameterized-trigger-plugin/pull/23

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14251) Parent injected env properties not propagated to child build jobs

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Change By: cjo9900 (29/Jul/12 5:05 PM)
Assignee: Gregory Boissinot cjo9900
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14251) Parent injected env properties not propagated to child build jobs

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Env inject plugin should extend AbstractBuildParameters and provide a method for passing the EnvInject Action to triggered jobs.

Change By: cjo9900 (27/Feb/13 1:19 PM)
Assignee: cjo9900 Gregory Boissinot
Component/s: envinject
Component/s: parameterized-trigger
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Loading...