Answer a question

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)?

Answers

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

enter image description here

Logo

CI/CD社区为您提供最前沿的新闻资讯和知识内容

更多推荐