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

predefined variables do not expand env vars with dots

XMLWordPrintable

      I am running a parameterized job which triggeres another one, I am trying to pass predefined parameters to that job where one of them contais dots e.g "build.number"
      as opposed to other parameters passed this one does not get expended and I end up with the parameter name as its value.

      example:

      CI_VERSION_PREFIX=${buildVersion}
      CI_VERSION_POSTFIX=${build.number}

      in the triggered job:
      echo aaa = %CI_VERSION_PREFIX%
      echo bbb = %CI_VERSION_POSTFIX%

      Result:
      aaa = 0.0.0.
      bbb = ${build.number}

            benza benza
            benza benza
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: