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

MsBuild windows style environment variables no longer work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: msbuild-plugin
    • Labels:
      None
    • Environment:
      Windows 7, XP
    • Similar Issues:

      Description

      After upgrading to version 1.15 of MSbuild plugin (from 1.13), it appears that dos style environment variables no longer work in the MSBuild arguments.

      Unix style environment variables do appear to work, and provide a workaround.

      For example, the following does not work:
      MSBuild Build File: %Project%\proj.sln
      but this does:
      MSBuild Build File: ${Project}\proj.sln

      I'm not sure if the change was intentional, but if it was, the help pop-ups are incorrect as they say the arguments should be the same as if you were to run MSBuild from the command line. Regardless of the intent, it would probably be good to have an environment variable in the help pop-up example.

        Attachments

          Activity

          Hide
          pascalc Pascal Crouzet added a comment -

          Same problem for me.

          Also works with :
          MSBuild Build File: $Project\proj.sln (or $WORKSPACE)

          Show
          pascalc Pascal Crouzet added a comment - Same problem for me. Also works with : MSBuild Build File: $Project\proj.sln (or $WORKSPACE)
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          src/main/java/hudson/plugins/msbuild/MsBuildBuilder.java
          http://jenkins-ci.org/commit/msbuild-plugin/fdf464ea9b31c908b7474cbace838baf2135e2b6
          Log:
          Fix JENKINS-15029 and JENKINS-14898

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: src/main/java/hudson/plugins/msbuild/MsBuildBuilder.java http://jenkins-ci.org/commit/msbuild-plugin/fdf464ea9b31c908b7474cbace838baf2135e2b6 Log: Fix JENKINS-15029 and JENKINS-14898

            People

            • Assignee:
              kdsweeney kdsweeney
              Reporter:
              anwallen Andrew Wallen
            • Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: