-
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 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Workflow | Original: JNJira [ 145837 ] | New: JNJira + In-Review [ 191651 ] |