Alter path to start finding

This commit is contained in:
Dan Hawkins 2021-12-20 23:14:41 +00:00
commit 4b3e84c72d
2 changed files with 2 additions and 2 deletions

View file

@ -347,7 +347,7 @@ def artifactimport(meta, parentmeta, String parentmetapath, String childproduct,
def childmeta = meta.getNewMetaObject()
def childmeta2
echo "Finding meta associated with child: Product: ${childproduct} Sub-component: ${childsubcomponent}"
echo "From Parent meta identifier: ${parentmeta.componentidentifier()} and parent meta path: ${parentmetapath}"
echo "From parent meta identifier: ${parentmeta.componentidentifier()} and parent meta path: ${parentmetapath}"
def findresults = parentmeta.findAssociatedMeta(parentmetapath, childproduct, childsubcomponent)
if (findresults.matchfound) {
childmeta = findresults.matchedmetaitem.metainfo

View file

@ -1080,7 +1080,7 @@ class MetaInfo extends GISJsonSerialised {
'matchedmetaitem' : new CollectedMeta(this),
'matchfound' : false
]
def walkresults = allrelatedmeta(parentmetapath)
def walkresults = allrelatedmeta("${parentmetapath}/${METAFOLDERNAME}")
for (dependentmetaitem in walkresults.metacollection) {
script.echo("Comparing: ${dependentmetaitem.metainfo.productinfo.productname} ${dependentmetaitem.metainfo.productinfo.subcomponentname}")
if (dependentmetaitem.metainfo.productinfo.productname == productname &&