A few wild guesses (not based on code knowledge, just speculation): * If the repository on the slave is being wiped each time you build, it might save time to skip the wipe and only clean instead of wiping * If the repository on the slave has not had "git gc" run recently and it has been there a long time with many commits, it might save time to run "git gc" in the slave repository * If the repository on github is large, it might save time to clone to a known location on the slave then use the "reference repo" argument to reference the existing local copies rather than copying from github each time Mark Waite
>________________________________ > From: Andrew Coulton <and...@ingenerator.com> >To: jenkinsci-users@googlegroups.com >Sent: Thursday, May 30, 2013 4:04 PM >Subject: Can I reduce delay at start of build? > > > >Hi there, > > >I have a Jenkins server (v1.5.10) set up to run builds on remote slaves. My >build is starting to get bigger, and I'm trying to shave time off it to reduce >the feedback loop. > > >I've noticed that every build seems to have a delay of about 40 seconds at the >beginning before it starts to checkout from git, as below: > > >00:00:00.000 Github pull request #69 of commit >6e9920cd8d49af9da20d5f9f18e4f3b33c3971f0 automatically merged. 00:00:00.508 >Building remotely on ####### (i-145b3f5e) in workspace >/var/jenkins/workspace/###### 00:00:01.314 Checkout:##### / >/var/jenkins/workspace/##### - hudson.remoting.Channel@af1257:#### dev-server >build slave (i-145b3f5e) 00:00:01.314 Using strategy: Default 00:00:01.451 >Last Built Revision: Revision 4256bc9e6338f975905ba09d3f47c407046e8215 >(origin/pr/69/merge) >00:00:40.098 Fetching changes from 1 remote Git repository 00:00:40.114 >Fetching upstream changes from g...@github.com:##### >00:00:46.039 Commencing build of Revision >a7cc4e94e1a1a07b47542abf3273e30bc17150c8 (origin/pr/69/merge) >00:00:47.851 Merging Revision a7cc4e94e1a1a07b47542abf3273e30bc17150c8 >(origin/pr/69/merge) onto master > > >Does anyone know what's happening during that time and if there's anything I >can do to reduce the lag? I've had a look at various logs, and done some >googling, but haven't been able to come up with any ideas. > > > >Thanks, > > >Andrew > > > > -- >u received this message because you are subscribed to the Google Groups >"Jenkins Users" group. >To unsubscribe from this group and stop receiving emails from it, send an >email to jenkinsci-users+unsubscr...@googlegroups.com. >For more options, visit https://groups.google.com/groups/opt_out. > > > > > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.