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

Broken env variable replacing

XMLWordPrintable

      If I use environment variables in "Other CMake Arguments" it will replace the variables in an incorrect order. It needs to replace long names before short names.

      Example:
      The following variables exists:
      MERCURIAL_REVISION = 0c775e18b569d4c5b505bd5fb73b854d700247d8
      MERCURIAL_REVISION_BRANCH = default
      MERCURIAL_REVISION_NUMBER = 5543
      MERCURIAL_REVISION_SHORT = 0c775e18

      If I use _BRANCH, _NUMBER or _SHORT it will replace half of the variable with the content of MERCURIAL_REVISION:

      "0c775e18b569d4c5b505bd5fb73b854d700247d8_NUMBER" instead of "5543"

            15knots Martin Weber
            misery A. Klitzing
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: