2017-07-06 13:45 GMT+02:00 15 knots <fifteenknots...@gmail.com>:
> 2017-07-06 0:27 GMT+02:00 Jesse Glick <jgl...@cloudbees.com>:
>> On Wed, Jul 5, 2017 at 3:43 PM, Martin Weber <fifteenknots...@gmail.com> 
>> wrote:
> ...
>>> Maybe one of the plugins installed on my production Jenkins interferes here?
>>
>> Conceivable.
>
> Found the culprit: Environment Injector Plugin
> Should I file a bug report?

This is what happens with SimpleBuildWrapper and the Environment
Injector Plugin installed:
- CommandInterpreter.perfom() calls AbstractBuild.getEnvironment().
- getEnvironment() assembles all values from its buildEnvironments
list -- one of these is SimpleBuildWrapper.EnvironmentWrapper. which
inserts my extended value for $Path. Fine.
- After that, EnvironmentContributingActions inject their variables.
One of them is an EnvInjectPluginAction, it overwrites the $Path
variable.

This EnvironmentContributingAction object will overwrite nearly every
variable (Path, JENKINS_URL, ALLUSERSPROFILE, PROCESSOR_ARCHITECTURE,
...).

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CANo-CZHTh2u_igP4pKHGtR334x-4gQg__pW9vgMWD6kJ4LAcWg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to