[ https://issues.jenkins-ci.org/browse/JENKINS-13673?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=162430#comment-162430 ]
SCM/JIRA link daemon commented on JENKINS-13673: ------------------------------------------------ Code changed in jenkins User: Gregory Boissinot Path: src/main/resources/org/jenkinsci/plugins/sharedobjects/ToolInstallationJobProperty/help-populateToolInstallation.html http://jenkins-ci.org/commit/shared-objects-plugin/16d206e3694442989b7d1644084f2321e7ecf6c7 Log: Fix JENKINS-13673 Compare: https://github.com/jenkinsci/shared-objects-plugin/compare/2bec41a...16d206e > 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