diff --git a/meta/folder.groovy b/meta/folder.groovy index ac3d0dd..67ca47a 100644 --- a/meta/folder.groovy +++ b/meta/folder.groovy @@ -1103,7 +1103,7 @@ class MetaInfo extends GISJsonSerialised { def ArrayList metacollection = new ArrayList() def Map metamap = new LinkedHashMap() 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 } diff --git a/product/info.groovy b/product/info.groovy index 24650ac..14a7ea4 100644 --- a/product/info.groovy +++ b/product/info.groovy @@ -181,9 +181,16 @@ def parseproductrepo(LinkedHashMap 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)