I don't know how to do that with pipeline DSL (though I suspect it is possible).
With a regular pipeline script, you can use the "pipeline syntax" link on a pipeline job definition to choose the "checkout" step. That step will allow you to define multiple remotes for a single working directory. You might look at the syntax it generates to see if something similar is allowed for pipeline DSL. Mark Waite On Mon, Feb 6, 2017 at 6:32 AM 'Marc Rohlfs' via Jenkins Users < jenkinsci-users@googlegroups.com> wrote: > Hi there, > > how can I define a Git repository with 2 remotes in Pipeline DSL? > Unfortunaltely, *Multiple SCMs* don't seem to work for me, because I need > a clone that is connected to two remote repositories. I actually need this > to implement an automated sync for a vendor branching. > > Any ideas? > > Many thanks in advance > > Marc > > -- > 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/ca368d24-4d85-4216-bb19-6d273f94020b%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/ca368d24-4d85-4216-bb19-6d273f94020b%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/CAO49JtE1NhZxbawLY%3D%3D_-ic6rLeo5KQMcQa7ihtzH_u7timCPA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.