On Thu, May 3, 2018 at 8:18 AM John Mellor <john.mel...@esentire.com> wrote:
> On Thu, 2018-05-03 at 15:38 +0200, Sébastien Hinderer wrote: > > . . . > > > > So just to make sure we are talking about the same thing, that means > > checking the "None" radio button in the souce code managemnet area, > > then > > check the "run builds remotely (from scripts)" checkbox and then, > > finally, in the commands used to build, clone all the required > > repositories. > > I have a bit of a different situation, where I want to use a common > Jenkinsfile across a large number of git repos. Duplicating the > Jenkinsfile everywhere is a very poor solution, so I checkout the > project containing the Jenkinsfile, delete the .git directory in the > WORKSPACE, and then use the scm directives in the Jenkinsfile to > checkout the real project on top. Its far from ideal, but for some > reason it looks like this very common scenario is not supported. > > If you have a better way to do this... > > It seems like you're describing a very good use case for a Pipeline shared library. Each repository and each branch then has a very simple Jenkinsfile which loads the shared library and calls it. That's the technique used for Jenkins plugin development <https://github.com/jenkinsci/git-client-plugin/blob/master/Jenkinsfile>. 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/1525357081.24903.6.camel%40esentire.com > . > 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/CAO49JtHRwd6WYAK-XXpJqhRkfZ6L3mArtXaHOxRSf%3DwPukGz3Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.