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

Path problems when using sh of git for windows

XMLWordPrintable

      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.

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

              Created:
              Updated: