env Variables can not be resolved in "predefined parameters" textfield

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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:
            cjo9900
            Reporter:
            ignaz reicht
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: