Debug sha/tags table

This commit is contained in:
Dan Hawkins 2022-03-12 10:24:22 +00:00
commit 390c97c87b
2 changed files with 11 additions and 4 deletions

View file

@ -1103,7 +1103,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 iteration info at start:\n${ii.show()}")
//script.echo("Release walker iteration info at start:\n${ii.show()}")
def results = walkrelated(ii)
return results.metacollection
}

View file

@ -181,9 +181,16 @@ def parseproductrepo(LinkedHashMap<String, ProductParsed> productcollection,
shatagmap.each { sha, tags ->
echo "Sha: ${sha} has tags: ${tags}"
dir(productreleasefolder) {
sh """#!/bin/bash
git checkout ${sha}
"""
def returnstatus = sh( script: """#!/bin/bash
git checkout ${sha}
""",
returnStatus: true)
echo "returnstatus: ${returnstatus}"
if (returnstatus > 0) {
dir('meta') {
deleteDir()
}
}
}
def productreleasemeta = meta.importrelated(false, productreleasefolder)