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

git plugin should automatically remove .git/index.lock if the job is killed

    Details

    • Similar Issues:

      Description

      Git will create a .git/index.lock file when it is executing. If the job is killed, the git process is killed, and therefore the lock file is left over. All subsequent attempts to run git in that workspace on that machine will fail.

      One solution is to delete this file in the post-build task of the job automatically.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                bnovc bnovc
              • Votes:
                26 Vote for this issue
                Watchers:
                27 Start watching this issue

                Dates

                • Created:
                  Updated: