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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: git-client-plugin
    • Labels:
      None
    • 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
    • Similar Issues:

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: