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

Command Line Arguments: /p:PublishFolder does not work with UNC format to publish to remote server

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • msbuild-plugin
    • None

      I set the parameter of PublishFolder to a centralized share as /p:PublishFolder="\\RemoteServerName\OfficialBuilds\Published\, but I got "\RemoteServerName\OfficialBuilds\Published\" in my MSBuild build file. Obviously, one backslash was dropped by the MSBuild plugin.

      If I changed the setting to /p:PublishFolder="\\\RemoteServerName\OfficialBuilds\Published\, the right share folder path of "\\RemoteServerName\OfficialBuilds\Published\" was transferred to my MSBuild build file

          [JENKINS-22344] Command Line Arguments: /p:PublishFolder does not work with UNC format to publish to remote server

          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

          This issue is not fixed in MSBuild plugin 1.24
          Backslash is still getting truncated at the beginning of the network location.

          Akhil Aggarwal added a comment - This issue is not fixed in MSBuild plugin 1.24 Backslash is still getting truncated at the beginning of the network location.

          Tilo added a comment -

          Are there any updates on this issue? Does the issue still persist?

          Tilo added a comment - Are there any updates on this issue? Does the issue still persist?

            tilalx Tilo
            weizhang99 Wei Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: