jenkinsci / jenkinsci/git-plugin

[JENKINS-39111] Git client timeout for checkout operation should be applied to git clean

Open
#2,975 2 comments 0 reactions 0 assignees View on GitHub
component:git-plugin enhancement imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
694
Forks
1.1k
Avg merge
1h 29m
Merged PRs (30d)
3

Description

Git client timeout for checkout operation should be applied to git clean

Similar to JENKINS-29164, except this request is for "git clean" operations.

A Linux build slave with Jenkins workspace on a remote (NFS) file system had frequent build failures due to git client timeout.

We increased the configured git client time limit from 10 to 20, in both "Advanced checkout behaviours" and "Advanced clone behaviors".

The git client timeout error occured less often, but it still happens occasionally in "git clean" (we use the "Clean After Checkout" Git behaviour). The console log shows that git clean gets a timeout value of 10 (the default), not 20 (our configured value).

If the user-specified git client timeout value is applied to git checkout, then it should also be applied to git clean. Both git operations are vulnerable to file system slowdowns.

Thanks!

---
Originally reported by hushp1pt, imported from: Git client timeout for checkout operation should be applied to git clean


  • status: Open
  • priority: Minor
  • component(s): git-plugin
  • label(s): git
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-02

Raw content of original issue

Git client timeout for checkout operation should be applied to git clean

Similar to JENKINS-29164, except this request is for "git clean" operations.

A Linux build slave with Jenkins workspace on a remote (NFS) file system had frequent build failures due to git client timeout.

We increased the configured git client time limit from 10 to 20, in both "Advanced checkout behaviours" and "Advanced clone behaviors".

The git client timeout error occured less often, but it still happens occasionally in "git clean" (we use the "Clean After Checkout" Git behaviour). The console log shows that git clean gets a timeout value of 10 (the default), not 20 (our configured value).

If the user-specified git client timeout value is applied to git checkout, then it should also be applied to git clean. Both git operations are vulnerable to file system slowdowns.

Thanks!

  • environment: Jenkins 2.7.4, Git plugin 2.6.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.