jenkinsci / jenkinsci/git-client-plugin
[JENKINS-12513] git plugin should automatically remove .git/index.lock if the job is killed
- Dominant language
- Java
- Stars
- 152
- Forks
- 402
- Avg merge
- 6h 47m
- Merged PRs (30d)
- 4
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.
---
Originally reported by bnovc, imported from: git plugin should automatically remove .git/index.lock if the job is killed
Raw content of original issue
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.
Contributor guide
Assessment
This issue has not been assessed yet.