On Fri, Apr 6, 2018 at 9:45 AM Steven Foster <stevengfos...@gmail.com> wrote:
> I'm encountering problems with the PR Merge Jenkinsfile checkout since my > build is actually 12 builds in parallel so the pressure is enormous > especially when multiple prs are building at once. I would like to use the > reference repository feature on the master to relieve this somewhat, but I > have also want to use it on the agents for the actual builds. The master > runs Linux and the agents run Windows. Is there a way to provide 2 > different reference repo locations, or support this in some other way since > the paths will be different? > > Anna Tikhonova has submitted a git plugin pull request <https://github.com/jenkinsci/git-plugin/pull/575> that allows the value of the reference repository to be controlled by an agent specific environment variable. The administrator can then define an environment variable for each agent which is the path to the parent directory of the reference repositories and then use that environment variable in the job definition. You could download the pull request build <https://ci.jenkins.io/job/Plugins/job/git-plugin/view/change-requests/job/PR-575/lastSuccessfulBuild/artifact/target/git.hpi>, test drive it in your environment, then report your results in the pull request <https://github.com/jenkinsci/git-plugin/pull/575>. That will help the Jenkins project and may solve your problem as well. > Also as an aside, what happens if a build is fetching from a reference > repo while the reference repo itself is fetching updates? > Command line git has locking mechanisms that update the object store before updating the index. It should handle that case. 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 jenkinsci-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/c6585c59-e73c-412f-9c8a-778616147c95%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/c6585c59-e73c-412f-9c8a-778616147c95%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtEzqpZ3f6crGYq1pQPJtnFnnnzHEWid84tvKwiPR3Q5cA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.