Issue Type: Bug Bug
Affects Versions: current
Assignee: Gregory Boissinot
Components: envinject
Created: 02/Jul/12 1:10 AM
Description:

Steps to reproduce:

1. Go to /configure and check 'Environment variables' under 'Global properties'
2. Add a variable called GLOBAL_VAR with the value $HOME/foo and save
3. Create a new job, check 'Prepare an environment for the run' and put 'DERIVED_VAR=$GLOBAL_VAR/bar' in 'Properties Content'.
4. Check 'Restrict where this project can be run' and make it run on a node OTHER THAN master
5. Add an 'Execute shell' build step and add:

echo $GLOBAL_VAR
echo $DERIVED_VAR

6. Run job


Expected output:

Building remotely on not_master in workspace /tmp/slave/workspace/env_test
[env_test] $ /bin/sh -xe /var/folders/t5/2y9vs7rj20b7h_h3hj_d_ly98mbs7g/T/hudson2936884432042635298.sh
/home/jenkins/foo
/home/jenkins/foo/bar

Actual output:

[EnvInject] - Unset unresolved 'GLOBAL_VAR' variable.
[EnvInject] - Unset unresolved 'DERIVED_VAR' variable.
Building remotely on not_master in workspace /tmp/slave/workspace/env_test
[env_test] $ /bin/sh -xe /var/folders/t5/2y9vs7rj20b7h_h3hj_d_ly98mbs7g/T/hudson2936884432042635298.sh
/home/jenkins/foo

Environment: EnvInject 1.55
Jenkins 1.472
Project: Jenkins
Priority: Major Major
Reporter: Jørgen Tjernø
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to