Reputation: 1023
I am trying to build git repo project through jenkins. But every time the jenkins return error log as 'my project return error after 10min'. Is there a way to solve this or increase the timeout duration? My project have a size around 5GB.
Upvotes: 0
Views: 2541
Reputation: 1
If Repo size is huge and git default timeout is set to 10 minutes.
Increase the timeout with a option "Advanced clone behaviours", in timeout section give 45 minutes to 90 minutes, based on your repo size and bandwidth available.
It will work.
Upvotes: 0
Reputation: 1023
Its default time is 10 minutes. To increase duration in the project config page click on add and select 'advanced clone behavior'. From the dropdown list and add time in minutes.
Upvotes: 0
Reputation: 7202
From this answer:
Workaround #2 - increase the timeout to allow for the long initial clone process to complete, using the
Git.timeOut
property:java -Dorg.jenkinsci.plugins.gitclient.Git.timeOut=60 -jar jenkins.war
This SO question is a good example of how to set properties for the Jenkins service. Also, note that this value is in minutes and not seconds. This workaround is courtesy of David.
Upvotes: 2