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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • git-client-plugin
    • None
    • 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.

            markewaite Mark Waite
            chrisabit chrisabit
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: