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

          ignaz reicht created issue -
          ignaz reicht made changes -
          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
          ignaz reicht made changes -
          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
          ignaz reicht made changes -
          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
          cjo9900 made changes -
          Assignee Original: huybrechts [ huybrechts ] New: cjo9900 [ cjo9900 ]
          cjo9900 made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 145837 ] New: JNJira + In-Review [ 191651 ]

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

              Created:
              Updated:
              Resolved: