On Tuesday, February 25, 2020 at 1:06:26 AM UTC-7, Amila Gunathilake wrote: > > > > On Tuesday, February 25, 2020 at 3:03:34 AM UTC-5, Amila Gunathilake wrote: >> >> Hi Mark, >> >> Actually where I can find the file you mention >> "/home/mwaite/git/bare/jenkins/jenkins.git/objects" in your repository >> MarkEWaite <https://github.com/MarkEWaite>/jenkins-bugs >> <https://github.com/MarkEWaite/jenkins-bugs> ? >> >> Finally I able to get use the GIT Reference repository in my builder >> machine. But to get use that I had to replace my old Jenkins >> Configurations by giving the GIT reference repository path as below. >> > > > > [image: Capture1.PNG] > > >> It's really surprised me because, as above screenshot when I include >> that reference-path configuration in Jenkins GUI only it starting to >> getting use my Jenkinsfile's SCM checkout stage code configurations. >> >> That should not surprise you. If you want to use a reference repository, then you'll need to define the location of that reference repository in each context where a checkout is performed. Reading the Jenkinsfile from git is a checkout.
> >> Still I have a small issue as you can see below Jenkins console-output it >> says "using Shallow fetch with depth 3" *02 times*. (previously it was >> only one time. So I'm afraid that Jenkins uses both configurations such as >> Jenkins GUI and Jenkinsfile code configurations here. Is it okay since it >> may not do any harm to my builds ? >> > > > [image: Capture.PNG] > > > Yes, the git plugin is known to perform two fetch operations for each checkout. It has been reported as https://issues.jenkins-ci.org/browse/JENKINS-49757 and as https://issues.jenkins-ci.org/browse/JENKINS-56404 . There is a Google Summer of Code project idea that proposes to fix that by reducing it so that it only calls fetch once. See https://jenkins.io/projects/gsoc/2020/project-ideas/git-plugin-performance/#fix-known-issues-avoid-redundant-fetch for a discussion of the issue and ideas that have been offered. Mark Waite -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ec5e3122-4141-48c0-b3c5-ee734cba1e95%40googlegroups.com.
