Path problems when using sh of git for windows

This issue is archived. You can view it, but you can't modify it. Learn more

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.

            Assignee:
            Unassigned
            Reporter:
            Michael Düsterhus
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: