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

Backslash is stripped from MSBuild command line argument

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • msbuild-plugin
    • None

      I'm trying to pass in the following command line argument to MSBuild:
      /p:SolutionDir="${WORKSPACE}"\trunk\

      From my build output, this is passed properly except the "\" at the end of "trunk\" is always removed.

      I tried version 1.21 and 1.17 of the MSBuild plugin and neither work.

          [JENKINS-22451] Backslash is stripped from MSBuild command line argument

          Gregory Boissinot added a comment - - edited

          '\' is an escaped character.
          In your use case, for having 'trunk\' in the command line, use double backslash character.

          Gregory Boissinot added a comment - - edited '\' is an escaped character. In your use case, for having 'trunk\' in the command line, use double backslash character.

          Sorry I fixed with an alternative

          Gregory Boissinot added a comment - Sorry I fixed with an alternative

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          src/main/java/hudson/plugins/msbuild/MsBuildBuilder.java
          src/test/java/hudson/plugins/msbuild/MsBuildBuilderTest.java
          http://jenkins-ci.org/commit/msbuild-plugin/bdec2dfe089d62a80fd0371db605ee9c3ebbe41b
          Log:
          Fix JENKINS-22344 and JENKINS-22451

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: src/main/java/hudson/plugins/msbuild/MsBuildBuilder.java src/test/java/hudson/plugins/msbuild/MsBuildBuilderTest.java http://jenkins-ci.org/commit/msbuild-plugin/bdec2dfe089d62a80fd0371db605ee9c3ebbe41b Log: Fix JENKINS-22344 and JENKINS-22451

            kdsweeney kdsweeney
            cmckinnon Chris McKinnon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: