I am using jenkins to build my git remote project. The problem is log says 'timeout after 10 min'. Receiving object starts and at 56% something happens.
Global configuration. Go to Manage Jenkins and then Configure System . Under the item Global Build Time Out you can activate a global timeout which will be applied to any job. Choose your timeout strategy, the duration and add actions which should be executed at timeout.
Its default time is 10 minutes.
Edit your job configuration, and under git plugin section: Click "Add" Click "Advanced clone behaviours" Set the number of minutes you want in "Timeout (in minutes) for clone and fetch operation"
3 version, Go to Manage jenkins -> Global tool configuration -> Git installations -> Path to Git executable: C:\Program Files\Git\bin\git.exe It works!
Edit your job configuration, and under git plugin section:
I recommend checking also the "shallow clone" option. It fetches only the last state of the repository (without the history), so it's much faster.
I have also face the same error while click on Build Now Button in Jenkins.
Why this error comes ? Ans: This error was coming because of low Internet connection or may be the size of you project in github is large, so jenkins not able load/cone that project from git server.
Solution steps:
git
.Add
button and select Advanced clone behaviors
.Timeout
(in minutes) for clone and fetch operations box put any number which is more then 10, (I put 60 here).Cheers :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With