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

Path problems when using sh of git for windows

      Having a windows build node using sh.exe in the path from git for windows withMaven has problems with mavenSettingsFilePath and mavenLocalRepo because Backslashes are not escaped.

      C:\foo\bar must be C:\\foo
      bar

      withMaven(mavenSettingsFilePath: env.WORKSPACE + "\\foo
      bar")

      This works when using bat mvn instead of sh mvn inside the withMaven block.

          [JENKINS-51689] Path problems when using sh of git for windows

          Michael Düsterhus created issue -
          Cyrille Le Clerc made changes -
          Assignee Original: Alvaro Lobato [ alobato ] New: Cyrille Le Clerc [ cleclerc ]
          Cyrille Le Clerc made changes -
          Link New: This issue is related to JENKINS-47704 [ JENKINS-47704 ]
          Cyrille Le Clerc made changes -
          Labels New: cygwin
          Michael Düsterhus made changes -
          Link New: This issue is duplicated by JENKINS-52241 [ JENKINS-52241 ]
          Arnaud Héritier made changes -
          Assignee Original: Cyrille Le Clerc [ cleclerc ]

            Unassigned Unassigned
            reitzmichnicht Michael Düsterhus
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: