Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-15117

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

      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

            cjo9900 cjo9900
            ireicht ignaz reicht
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: