Getting timeout error in Jenkins pipeline

Getting timeout error while performing git actions in jenkins console output:

Cloning the remote Git repository 11:23:57 Cloning repository 11:23:57 > git init /var/jenkins_home/workspace/Deployments/Deploy # timeout=10 11:23:57 Fetching upstream changes from 11:23:57 > git --version # timeout=10 11:23:58 > git --version # ‘git version 2.30.2’ 11:23:58 using GIT_ASKPASS to set credentials Github 11:23:58 > git fetch --tags --force --progress – +refs/heads/:refs/remotes/origin/ # timeout=10 11:24:01 > git config remote.origin.url # timeout=10 11:24:01 > git config --add remote.origin.fetch +refs/heads/:refs/remotes/origin/ # timeout=10 11:24:01 Avoid second fetch 11:24:01 > git rev-parse refs/remotes/origin/develop^{commit} # timeout=10 11:24:01 Checking out Revision 4cb836abd37b01dd6db3299e493520ac73c16d07 (refs/remotes/origin/develop) 11:24:01 > git config core.sparsecheckout # timeout=10 11:24:01 > git checkout -f 4cb836abd37b01dd6db3299e493520ac62c16c07 # timeout=60 11:24:04 Commit message: “Update Jenkinsfile_deploy_test” 11:24:04 > git rev-list --no-walk 4cb836abd37b01dd6db3299e493520ac62c16c07 # timeout=10

I have tried checking git version and jenkins version in the instance where jenkins is hosted. All seems ok. Can’t seem to find the issue. Also I am new to jenkins pipeline

Hello @zabhi04 and welcome to this community. :wave:

Did you check the network connection?
Please ensure that the Jenkins server has a stable network connection and can access the Git repository.
You can test this by manually running Git commands on the Jenkins server itself.

You could also check the server performance…
If the Jenkins server is under heavy load, it might not be able to complete the Git operations within the timeout period.
Check the server’s CPU usage, memory usage, and disk I/O.