Reset first option on Windows slave fails

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major
    • Component/s: repo-plugin
    • None
    • Environment:
      Jenkins 2.23
      REPO plugin 1.10.5
      Windows Slave is Windows 8.1
      Windows Slave has cygwin installed for git

      When the 'Reset first' option is selected for a job, the command run is:

      repo forall -c "git reset --hard"
      

      This fails on a Windows slave due to the double quotes. Example output from the Jenkins log is:

      12:46:06 [Source] $ repo.cmd forall -c "git reset --hard"
      12:46:07 error: unknown option `hard git'
      

      This also inteferes with automatic cleanup if build modifies some committed source and the initial 'repo sync -d -c' cause repo-plugin to try a hard reset. The output is the same.

            Assignee:
            Unassigned
            Reporter:
            Julian Churchill
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: