[ https://issues.jenkins-ci.org/browse/JENKINS-13673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
gbois resolved JENKINS-13673. ----------------------------- Resolution: Fixed The error is due to an issue between environment variables with dot (.) and Jenkins. In the last shared-objects Jenkins plugin, environment variables from tool names replaces a space, a dash or a dot to by a underscore. You just have to update your job configurations and replace dot with underscore. > Tool installations injected by SharedObjects plugin cannot be used by > EnvInject > ------------------------------------------------------------------------------- > > Key: JENKINS-13673 > URL: https://issues.jenkins-ci.org/browse/JENKINS-13673 > Project: Jenkins > Issue Type: Bug > Components: shared-objects > Affects Versions: current > Reporter: Florian Zschocke > Assignee: gbois > > Jenkins has various tools configured, e.g. Maven 2.2.1. This is injected by > the SHaredObjects plugin under the environment variable Maven_2.2.1. This > variable is set and present. > This variable can not be used by the EnvInject plugin when setting other > variables. I have tried this in the Job and Build sections of the > configuration. In both cases the variable referencing ${Maven_2.2.1} was > unresolved. > Setting the following property under Job: > {noformat} > MAVEN_BIN=${Maven_2.2.1}/bin > {noformat} > results in > {code} > [EnvInject] - Loading node environment variables. > [EnvInject] - Preparing an environment for the build. > [EnvInject] - Keep Jenkins system variables. > [EnvInject] - Keep Jenkins build variables. > [EnvInject] - Injecting as environment variables the properties content > CMAKE_HOME=${CBE_TOOLS}/cmake > MAVEN_BIN=${Maven_2.2.1}/bin > [EnvInject] - Variables injected successfully. > [SharedObjects] - Injecting tool installations as environment variables > [EnvInject] - Unset unresolved 'MAVEN_BIN' variable. > {code} > Setting the property under the Build section results in: > {code} > [EnvInject] - Loading node environment variables. > [EnvInject] - Preparing an environment for the build. > [EnvInject] - Keep Jenkins system variables. > [EnvInject] - Keep Jenkins build variables. > [SharedObjects] - Injecting tool installations as environment variables > Building on master in workspace > /data/sourcecode/codec/trunk/hourly/arch/amd64/os/linux > [EnvInject] - Executing scripts and injecting environment variables after the > SCM step. > [EnvInject] - Injecting as environment variables the properties content > CMAKE_HOME=${CBE_TOOLS}/cmake > MAVEN_BIN=${Maven_2.2.1}/bin > [EnvInject] - Variables injected successfully. > [EnvInject] - Unset unresolved 'MAVEN_BIN' variable. > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira