JGit file contents are not reset like CLI git file contents when a job runs

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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Critical
    • Component/s: git-client-plugin
    • Environment:
      Jenkins 1.566
      git plugin 2.2.1
      git client plugin 1.9.1
      JGit
      Tomcat 7
      Java 1.7.0_60
      RHEL6
      gitblit Repos / http

      JGit implementation does not reset existing tracked files (modified by a previous build)at the start of each job. Command line git implementation does reset existing tracked files modified by a previous build.

      The git fetch works, moreover the correct commit hashcode is used (visible in console log).

      A manual (commandline!) "git reset --hard" updates the working dir.
      Our workaround: Force delete jenkins working dir.

            Assignee:
            Mark Waite
            Reporter:
            chrisabit
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: