The "checkout" step in a Jenkinsfile will allow you checkout multiple
repositories from a single Pipeline job.  It works quite well.  Use the
"Pipeline Syntax" link from pipeline job pages to complete parameters for
the "checkout" step.

As an example, I have a small repository that contains a series of branches
that I use to define the jobs which will checkout and build from multiple
repositories.  That allows me to have a small repository which defines how
I want to build many other repositories.

Mark Waite

On Wed, Dec 21, 2016 at 10:25 AM Torsten Reinhard <[email protected]>
wrote:

> Hi,
>
> I have a pipeline doing a build and afterwards a deployment to the TEST
> environment.
>
> For the build I need to
> // checkout sources for building
> checkout scm
>
> and later on I need to
> //checkout configuration for TEST environment
> checkout scm (config)
>
> I wasn´t able to configure a working directory for each repo - and the
> "Multiple SCMs plugin" is deprecated with a hint to the Pipeline plugin.
> How can I setup the Pipeline job so it´s using "Pipeline script from SCM"
> AND additionally some files/configs from a different repo?
>
> I know about the workaround with subtrees and also this issue:
> https://issues.jenkins-ci.org/browse/JENKINS-13228,
> but I´m wondering why help points to the Pipeline plugin ?
>
> Any sample setup available ?
>
> Thanx for helping,
>
> Torsten
>
> --
> 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/0aa76f95-1c3c-43bb-a3a7-01b45a3eb282%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/0aa76f95-1c3c-43bb-a3a7-01b45a3eb282%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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtHJKXM%2Bj0iD2V46cr8nqdzXSwZDn6P3nhpjsesY3Cgu2A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to