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

Backslash is stripped from MSBuild command line argument

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          Hide
          gbois 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.

          Show
          gbois 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.
          Hide
          gbois Gregory Boissinot added a comment -

          Sorry I fixed with an alternative

          Show
          gbois Gregory Boissinot added a comment - Sorry I fixed with an alternative
          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
          src/test/java/hudson/plugins/msbuild/MsBuildBuilderTest.java
          http://jenkins-ci.org/commit/msbuild-plugin/bdec2dfe089d62a80fd0371db605ee9c3ebbe41b
          Log:
          Fix JENKINS-22344 and JENKINS-22451

          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 src/test/java/hudson/plugins/msbuild/MsBuildBuilderTest.java http://jenkins-ci.org/commit/msbuild-plugin/bdec2dfe089d62a80fd0371db605ee9c3ebbe41b Log: Fix JENKINS-22344 and JENKINS-22451

            People

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

              Dates

              • Created:
                Updated:
                Resolved: