Help the meta walker find the meta data for a child

This commit is contained in:
Dan Hawkins 2021-12-17 17:01:19 +00:00
commit f554d5bd6c

View file

@ -342,12 +342,12 @@ def artifactimport(meta,
}
// Import the artifacts of a named child component found below parent meta's hierarchy
def artifactimport(meta, parentmeta, String childproduct, String childsubcomponent, importoptions, String destinationfolder) {
def artifactimport(meta, parentmeta, String parentmetapath, String childproduct, String childsubcomponent, importoptions, String destinationfolder) {
// Import from parent meta
def childmeta = meta.getNewMetaObject()
def childmeta2
echo "Finding meta associated with child: Product: ${childproduct} Sub-component: ${childsubcomponent}"
def findresults = parentmeta.findAssociatedMeta(childproduct, childsubcomponent)
def findresults = parentmeta.findAssociatedMeta(parentmetapath, childproduct, childsubcomponent)
if (findresults.matchfound) {
childmeta = findresults.matchedmeta
if (childmeta.releaseinfo.released) {