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

Reset first option on Windows slave fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • repo-plugin
    • None
    • 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.

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

              Created:
              Updated: