Correct hierarchical import of artifacts from release repositories

This commit is contained in:
Dan Hawkins 2022-01-11 16:23:57 +00:00
commit 00afcebd3d
2 changed files with 4 additions and 1 deletions

View file

@ -202,6 +202,9 @@ def hierarchyartifactimportfromrepo(meta, importoptions, String destpath) {
echo "Getting associated metadata from path: ${destpath}"
def collectedmetalist = importedmeta.getassociated(destpath)
for(def collectedmeta in collectedmetalist) {
echo "Collection meta item: ${collectedmeta.metainfo.componentversionuniqueidentifier()} offset path: ${collectedmeta.accumulatedpath}"
}
echo "Cloning associated repos inside path: ${destpath}"
for(def collectedmeta in collectedmetalist) {

View file

@ -1095,7 +1095,7 @@ class MetaInfo extends GISJsonSerialised {
def ArrayList<CollectedMeta> metacollection = new ArrayList<CollectedMeta>()
def Map<String, CollectedMeta> metamap = new LinkedHashMap<String, CollectedMeta>()
def IterationInfo ii = new IterationInfo(metacollection, metamap, 'meta', 0, startpath, startmetapath, true, maxdepth)
script.echo("Release walker interation info at start:\n${ii.show()}")
script.echo("Release walker iteration info at start:\n${ii.show()}")
def results = walkrelated(ii)
return results.metacollection
}