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

Environment variables not expanded in CMake build steps

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I have a number of projects that, on windows, use cmake build commands including environment variables, such as:

      "${ProgramFiles}\Microsoft Visual Studio 9.0\vc\vcpackages\vcbuild.exe" TCtoolCMake.sln "Release|Win32"

      This worked until I upgraded Jenkins quite recently to version 1.460 (and I think upgraded the envinject plugin at the same time), but no longer works. I am using cmakebuild 1.9 and envinject 1.46.

      I can work around this by changing the command to

      "c:\Program Files\Microsoft Visual Studio 9.0\vc\vcpackages\vcbuild.exe" TCtoolCMake.sln "Release|Win32"

      but this is less portable between machines (e.g. I don't think it will work on a Windows 7 machine).

        Attachments

          Activity

          Hide
          gbois Gregory Boissinot added a comment -

          Do you have defined $ProgramFiles variable somewhere?
          Could you attach your job configuration file (config.xml)?

          Show
          gbois Gregory Boissinot added a comment - Do you have defined $ProgramFiles variable somewhere? Could you attach your job configuration file (config.xml)?
          Hide
          gbois Gregory Boissinot added a comment -

          I'm closing the issue for now.
          If you have new input, do not hesitate to reopen it.

          Show
          gbois Gregory Boissinot added a comment - I'm closing the issue for now. If you have new input, do not hesitate to reopen it.

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              aberent Anthony Berent
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: