jenkinsci / jenkinsci/git-plugin
[JENKINS-32143] Set git merge timeout
- Dominant language
- Java
- Stars
- 694
- Forks
- 1.1k
- Avg merge
- 1h 29m
- Merged PRs (30d)
- 3
Description
When using Merge Before Build, sometimes throws error:
git merge --ff df24f37fedf6048881cc0683a782c975b0bd8db7 # timeout=10
ERROR: Timeout after 10 minutes
> git config core.sparsecheckout # timeout=10
> git checkout -f df24f37fedf6048881cc0683a782c975b0bd8db7 # timeout=20
FATAL: Could not lock repository. Please try again
and next build in the same workspace is failed with error:
FATAL: Could not lock repository. Please try again
This happens because my repositore is very big. I want set a merge timeout or kill git process before next try.
Thanks
---
Originally reported by da_ryazancev, imported from: Set git merge timeout
Raw content of original issue
When using Merge Before Build, sometimes throws error:
git merge --ff df24f37fedf6048881cc0683a782c975b0bd8db7 # timeout=10
ERROR: Timeout after 10 minutes
> git config core.sparsecheckout # timeout=10
> git checkout -f df24f37fedf6048881cc0683a782c975b0bd8db7 # timeout=20
FATAL: Could not lock repository. Please try againand next build in the same workspace is failed with error:
FATAL: Could not lock repository. Please try againThis happens because my repositore is very big. I want set a merge timeout or kill git process before next try.
Thanks
- environment:
windows
Contributor guide
Assessment
This issue has not been assessed yet.