-
Bug
-
Resolution: Fixed
-
Major
-
None
-
win7
usecase:
JobA wants to pass its name (%JOB_NAME%) to JobB. Therefore in the configuration of JobA the predefined parameters textfield is used to resolve the name but does not work as expected. Instead the whole string "%JOB_NAME%" is passed instead of "JobA". Here how I configured it:
– JobA-------
- predefined parameters:
myJobName=%JOB_NAME%
=>pass parameter on to JobB
– JobB--------
- bash command(win7)
echo %myJobName%
=>output: echo %JOB_NAME%
%JOB_NAME%
cheers
Ignaz
[JENKINS-15117] env Variables can not be resolved in "predefined parameters" textfield
Description |
Original:
usecase: JobA wants to pass its name (%JOB_NAME%) to JobB. Therefore in the configuration of JobA the predefined parameters textfield is used to resolve the name but does not work as expected. Instead the whole string "%JOB_NAME%" is passed instead of "JobA". Here how I configured it: --JobA-- -predefined parameters: myJobName=%JOB_NAME% =>pass parameter on to JobB --JobB-- -bash command(win7) echo %myJobName% =>output: echo %JOB_NAME% %JOB_NAME% cheers Ignaz |
New:
usecase: JobA wants to pass its name (%JOB_NAME%) to JobB. Therefore in the configuration of JobA the predefined parameters textfield is used to resolve the name but does not work as expected. Instead the whole string "%JOB_NAME%" is passed instead of "JobA". Here how I configured it: --JobA------- -predefined parameters: myJobName=%JOB_NAME% =>pass parameter on to JobB --JobB-------- -bash command(win7) echo %myJobName% =>output: echo %JOB_NAME% %JOB_NAME% cheers Ignaz |
Description |
Original:
usecase: JobA wants to pass its name (%JOB_NAME%) to JobB. Therefore in the configuration of JobA the predefined parameters textfield is used to resolve the name but does not work as expected. Instead the whole string "%JOB_NAME%" is passed instead of "JobA". Here how I configured it: --JobA------- -predefined parameters: myJobName=%JOB_NAME% =>pass parameter on to JobB --JobB-------- -bash command(win7) echo %myJobName% =>output: echo %JOB_NAME% %JOB_NAME% cheers Ignaz |
New:
usecase: JobA wants to pass its name (%JOB_NAME%) to JobB. Therefore in the configuration of JobA the predefined parameters textfield is used to resolve the name but does not work as expected. Instead the whole string "%JOB_NAME%" is passed instead of "JobA". Here how I configured it: -- JobA------- --predefined parameters: myJobName=%JOB_NAME% =>pass parameter on to JobB -- JobB-------- --bash command(win7) echo %myJobName% =>output: echo %JOB_NAME% %JOB_NAME% cheers Ignaz |
Description |
Original:
usecase: JobA wants to pass its name (%JOB_NAME%) to JobB. Therefore in the configuration of JobA the predefined parameters textfield is used to resolve the name but does not work as expected. Instead the whole string "%JOB_NAME%" is passed instead of "JobA". Here how I configured it: -- JobA------- --predefined parameters: myJobName=%JOB_NAME% =>pass parameter on to JobB -- JobB-------- --bash command(win7) echo %myJobName% =>output: echo %JOB_NAME% %JOB_NAME% cheers Ignaz |
New:
usecase: JobA wants to pass its name (%JOB_NAME%) to JobB. Therefore in the configuration of JobA the predefined parameters textfield is used to resolve the name but does not work as expected. Instead the whole string "%JOB_NAME%" is passed instead of "JobA". Here how I configured it: -- JobA------- * predefined parameters: myJobName=%JOB_NAME% =>pass parameter on to JobB -- JobB-------- * bash command(win7) echo %myJobName% =>output: echo %JOB_NAME% %JOB_NAME% cheers Ignaz |
Assignee | Original: huybrechts [ huybrechts ] | New: cjo9900 [ cjo9900 ] |
I have the same issue but for linux environment variables.
During job execution I execute a shell script that sets an environment variable say GINI_VERSION.
When I enter this variable in the predefined parameters field like version=${GINI_VERSION} or $GINI_VERSION. In the next job the entire string is passed and the variable is not resolved.