Currently, as the test tools and debian packager are significantly
smaller than main source code I could probably stash/unstash their
corresponding subfolders to achieve the necessary effect, but it doesn't
look elegant... ;)

//...
git url:'url-to-packager-sources'
stash name: "debian-installer", includes: "debian/*"
git url:'url-to-test-tools'
stash name: "test-tools", includes: "test-tools/*"
svn url:'url-to-installer-sources'
unstash "debian-installer"
unstash "test-tools"
//...

Cheers,
Kirill

On 07.06.17 17:36, Kirill Peskov wrote:
> Hi All,
>
> 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...
>
>
> Cheers,
>
> Kirill
>

-- 
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/4f769299-dc73-56a3-e698-9ae4c4a53d6e%40paranoid.email.
For more options, visit https://groups.google.com/d/optout.

Reply via email to