When importing artifacts from repo, clone subcomponents

This commit is contained in:
Dan Hawkins 2019-03-28 14:19:39 +00:00
commit 659859878d

View file

@ -43,10 +43,12 @@ def artifactimportfromrepo(meta, String repo, String revision, String destpath,
def importedmeta = meta.importrelated(destpath)
for(associatedmeta in importedmeta.getassociatedmeta()) {
def cloneurl = associatedmeta.releaseinfo.releaserepoURL
def clonerevision = associatedmeta.releasetag()
def clonepath = "${destpath}/${associatedmeta.offsetpath}"
for(relatedmetainfo in importedmeta.getassociatedmeta()) {
def relatedmeta = relatedmetainfo.meta
def relatedoffsetpath = relatedmetainfo.offsetpath
def cloneurl = relatedmeta.releaseinfo.releaserepoURL
def clonerevision = "refs/tags/${relatedmeta.releasetag()}"
def clonepath = "${destpath}/${relatedoffsetpath}"
echo "Cloning release repo: ${cloneurl}, revision: ${clonerevision} at folder: ${clonepath}"
gh.gitCheckout(cloneurl, rootrevision, clonepath)
}