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

reset hard fails for matrix project

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • git-plugin
    • None

      If "clean workspace" is selected with a matrix build, and the workspace doesn't exist or the .git folder doesn't exist in the workspace, then it fails with:
      Resetting working tree
      FATAL: Command "git reset --hard" returned status code 128:
      stdout:
      stderr: fatal: Failed to resolve 'HEAD' as a valid ref.

      For a non matrix project it works fine.

      Problem is reproducible with 1.1.24 and 1.1.23 (I haven't tested earlier).

            ndeloof Nicolas De Loof
            rschulz Roland Schulz
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: