![]() |
|
|
|
|
Issue Type:
|
Bug
|
|
Assignee:
|
Gregory Boissinot
|
|
Components:
|
envinject |
|
Created:
|
30/Dec/13 1:09 PM
|
|
Description:
|
The EnvInject plugin still does not override the global environment variable in within a jenkins job. I am using version 1.89.
I have set couple of global variables in the jenkins. In one of the jenkins job, I am trying to override the values of those variables based on a condition. But it is not working.
Below snippet is for reference:EnvInject - Loading node environment variables.
EnvInject - Preparing an environment for the build.
EnvInject - Keeping Jenkins build variables.
EnvInject - Executing and processing the following script content: This piece is executed in the Prepare an environment for the run section.
if [ ${EmergencyFix}= true ]
then
export RelPractice=${OldRelease}.x; export SprintCycle=""
fi
echo ${RelPractice}
hudson $ /bin/sh -xe /tmp/hudson3221881724786897823.sh
+ '' true = true ''
+ export RelPractice=1.4.x
+ RelPractice=1.4.x
+ export SprintCycle=
+ SprintCycle=
+ echo 1.4.x
1.4.x
EnvInject - Script executed successfully.
EnvInject - Injecting contributions.
Building on master in workspace /var/lib/hudson/jobs/TestJob_Practice/workspace
EnvInject - Executing scripts and injecting environment variables after the SCM step.
EnvInject - Executing and processing the following script content: - This piece is executed in the Build environment section.
echo ${RelPractice}
workspace $ /bin/sh -xe /tmp/hudson1726775335392935354.sh
+ echo 1.5
1.5 - it is showing the old value.
EnvInject - Script executed successfully.
Finished: SUCCESS
|
|
Due Date:
|
31/Dec/13 12:00 AM
|
|
Project:
|
Jenkins
|
|
Priority:
|
Critical
|
|
Reporter:
|
Prithula Mukherjee
|
|
|
|
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
|
--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
[email protected].
For more options, visit
https://groups.google.com/groups/opt_out.