Value of imported system environment variable is wrong

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

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Minor
    • Component/s: core
    • Environment:
      Jenkins Server: Windows Server 2008R2 (64 bit edition)
      Jenkins Version: 1.635

      Reproduction procedure:

      1. Create a new system environment variable: %JENKINS_DIR% which represents
      the installation folder of Jenkins, in my test environment, it's "C:\Program
      Files (x86)\Jenkins"

      2. Create a job which has build parameters defined in a property file, and
      the full path of this property files is
      "${JENKINS_DIR}\products\Properties\MyProduct-1.0.property" which should be
      interpreted as "C:\Program Files
      (x86)\Jenkins\products\Properties\MyProduct-1.0.property"

      3. When I execute the job, it failed and threw the "Invalid path"
      exeception, because it tried to find the file in "C:\Program Files
      (x86)\Jenkins\Job\test\1\archive\C:\Program Files
      (x86)\Jenkins\products\Properties\MyProduct-1.0.property"

      It must be something wrong because the problem doesn't exist in 1.628 which
      I upgraded from it.

            Assignee:
            Unassigned
            Reporter:
            Levski Weng
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: