On Wed, 7 Jun 2017, at 17:36, Kirill Peskov wrote:
> Due to some project restrictions I have to combine sources from 3
> repositories (1 Subversion and 2 Git repos), is there an easy way to
> achieve that in a declarative pipeline? Neither project subdirs nor
> files in the root of each repo are not overlapping with each other, so
> merging them in one workspace is actually safe.
>
> Something like that:
>
> pipeline {
> agent {
> dockerfile { dir 'ubuntu-xenial-mysql' }
>
> }
> stages {
> stage('Sources & Additional Tools Checkout'){
> steps {
> svn url:'url-to-installer-sources'
> git url:'url-to-test-tools'
> git url:'url-to-packager-sources'
> }
> }
> stage('Test suite') {
> steps {
> // Do some tests ...
> }
> stage('Build the package') {
> steps {
> // Invoke deb-package builder ...
> }
>
> }
>
> I've tested the simplified version of it trying to combine 2 GIT repos,
> it didn't work, second 'git' step wipes everything out of workspace...
I'm not sure exactly what the `git` step does, but you could try using
the `checkout` step instead.
--
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/1496922139.1116734.1002827528.4B531A33%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.