jenkinsci/envinject-plugin — Issue #2: Retrieve property file from master
Author: jvoegele
Created: 2011-11-04 18:44:52+00:00
State: open

The Jenkins EnvFile plugin is created in such a way that the env property file is retrieved from the master instead of the slave. As the documentation describes it: "The property file is always retrieved from the file system of the Jenkins master node, even in distributed setups with slave nodes."

I would like to have this feature for the EnvInject plugin. By retrieving the property file from the file system of the master node instead of the slave node, it allows us to use single file path that can be referenced from the master, and we don't have to worry about whether the slave could see the file system that contains the file, nor whether the slave uses a different path to said file system (for instance, Windows would have a drive letter at the beginning, whereas Unix nodes would not).

I've looked at the source for both EnvFile and EnvInject plugins, but I can't tell how EnvFile is forcing the properties file to be read from the master. Is this something you could consider adding to the EnvInject plugin?

Thanks!