Skip to content

[JENKINS-16316] Changes to global variables not honored. - #20

Merged
gboissinot merged 1 commit into
jenkinsci:masterfrom
jglick:sticky-var-JENKINS-16316
Jul 28, 2013
Merged

[JENKINS-16316] Changes to global variables not honored.#20
gboissinot merged 1 commit into
jenkinsci:masterfrom
jglick:sticky-var-JENKINS-16316

Conversation

@jglick

@jglick jglick commented Jul 26, 2013

Copy link
Copy Markdown
Member

Seems to fix JENKINS-16316. When EnvInjectComputerListener.onOnline considers Jenkins.globalNodeProperties, it takes the initial values of these variables and stuffs them into masterEnvVars on the slave, which really ought to be limited to “natural” environment variables. Then when these variables are changed and a build runs, the old values from masterEnvVars take precedence. This is true even if the user has never done anything with the EnvInject plugin except install it—especially insidious.

Pull #14 also claims to fix the same bug, in a very different way. Even if that is rejected, its tests may be useful.

@buildhive

Copy link
Copy Markdown

Jenkins » envinject-plugin #104 UNSTABLE
Looks like there's a problem with this pull request
(what's this?)

@jenkinsadmin

Copy link
Copy Markdown
Member

Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests

gboissinot added a commit that referenced this pull request Jul 28, 2013
[JENKINS-16316] Changes to global variables not honored.
@gboissinot
gboissinot merged commit 3371ed7 into jenkinsci:master Jul 28, 2013
@jglick
jglick deleted the sticky-var-JENKINS-16316 branch July 29, 2013 12:34
@jglick

jglick commented Jan 15, 2015

Copy link
Copy Markdown
Member Author

Could be. Use git bisect to see. If so, mark JENKINS-18297 as blocking JENKINS-16316. Obviously more complete functional tests are needed for this plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants