-
Bug
-
Resolution: Fixed
-
Minor
-
None
The ConfigFileProvider plugin copies a file to the workspace then sets an environment variable to the path of the copied file.
If this variable is referenced in EnvInject properties, it fails to be injected with an "unresolved variable" error.
The behavior is similar to what happens with ToolEnv variables when it is not enabled in the "prepare environment for run" section
For the ToolEnvPlugin, as I comment in the Tool Environment Plugin wiki page, this plugin is not compatible with this plugin.
You have to use the SharedObjects plugin (https://wiki.jenkins-ci.org/display/JENKINS/SharedObjects+Plugin). It covers Tool Env features and has a good integration with the EnvInject plugin.