Issue
One of our jobs runs timeout at the following command:
git checkout -f <commit>
The timeout is 10 minutes by default. I tried to execute it manually, it takes a bit more than 10 minutes. I set it to 20 minutes in the job's configure menu, but it doesn't work.
Advanced checkout behaviours:
Timeout (in minutes) for checkout operation: 20
Our Git Plugin version is 2.3.4. I read some posts about downgrade the version, but currently i can't try this option (i'm not allowed), so i decided to set the global timeout value.
Can someone tell me how to do this (in jenkins-slave.xml or command line)?
Solution
My Git plugin version is 2.3.5 and below configurations works for me.
Additional Behaviours-->Advanced checkout behaviours-->
Timeout (in minutes) for checkout operation: 20
Answered By - mainframer
Answer Checked By - Katrina (JavaFixing Volunteer)