-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
None
-
Development
The git checkout is much slower even after using reference repositories, shallow clones etc.
Running the same commands via the command line is much faster. I am using the latest version of all the plugins.
If you look at the below output, it runs the fetch more than once.
09:53:13 Cloning the remote Git repository 09:53:13 Using shallow clone 09:53:13 Avoid fetching tags 09:53:13 Cloning repository git@xxxxxxx:xxxx/xxxxxxx.git 09:53:13 > git init /srv/jenkins/workspace/shared-buck-2-master # timeout=10 09:53:14 Using reference repository: /var/lib/jenkins/reference-repositories/xxxxxx.git 09:53:14 Fetching upstream changes from git@xxxxx:xxxx/xxxxxxx.git 09:53:14 > git --version # timeout=10 09:53:14 > git fetch --no-tags --progress git@xxxxxx:xxxx/xxxxxxx.git +refs/heads/*:refs/remotes/xxxxxxx/* --depth=1 09:54:15 > git config remote.xxxxxxx.url git@xxxxxxxx:xxxxx/xxxxxxxx.git # timeout=10 09:54:15 > git config --add remote.xxxxxxxx.fetch +refs/heads/*:refs/remotes/xxxxxxx/* # timeout=10 09:54:15 > git config remote.xxxxxxx.url git@xxxxxxxx:xxxxx/xxxxxxx.git # timeout=10 09:54:15 Fetching upstream changes from git@xxxxxxxx:xxxx/xxxxxxx.git 09:54:15 > git fetch --no-tags --progress git@xxxxxxxx:xxxxx/xxxxxxxx.git +refs/heads/*:refs/remotes/xxxxxx/* --depth=1 09:54:18 > git rev-parse 87dc72cf506dcf684775c7e3be56184e09c44701^{commit} # timeout=10 09:54:18 Checking out Revision 87dc72cf506dcf684775c7e3be56184e09c44701 (detached) 09:54:18 > git config core.sparsecheckout # timeout=10 09:54:18 > git checkout -f 87dc72cf506dcf684775c7e3be56184e09c44701 09:54:46 Commit message: "@MS-123 - Increase the jvm memory size for the bat tests"
- relates to
-
JENKINS-30600 git isn't run inside build container
-
- Open
-
markewaite, jglick, any updates on this? This seems to be affecting us as well. I've tested all the exact same commands Jenkins runs directly on the instance running them (as jenkins user, in /tmp), and the checkout is what we consider normal speeds, that is - with my copy pasting of the commands in the log output, it took less than ~30 seconds. I don't have the exact timings from Jenkins (not sure how to produce them), but looking through BlueOcean UI, it's showing the initial `checkout from version control` step to be over 7 minutes. This isn't a particularly large repository either. Based on GitHub's API it's only about 27 mb.
EDIT: oddly, the blueocean ui changes the time taken for the step to be 4 seconds after a refresh.