Debug sha/tags table
This commit is contained in:
parent
e711a6cc54
commit
93b2f2b0b9
1 changed files with 11 additions and 11 deletions
|
|
@ -102,21 +102,21 @@ class ProductParsed {
|
|||
}
|
||||
}
|
||||
|
||||
def addProductEntry(LinkedHashMap<String, ProductParsed> products,
|
||||
def ProductParsed addProductEntry(LinkedHashMap<String, ProductParsed> productcollection,
|
||||
String productvariant,
|
||||
String releaserepo) {
|
||||
def productparsed
|
||||
if (products.get(releaserepo) == null) { // Use the first entry name only
|
||||
def ProductParsed productparsed
|
||||
if (productcollection.get(releaserepo) == null) { // Use the first entry name only
|
||||
echo "Adding product variant: ${productvariant} releaserepo: ${releaserepo}"
|
||||
productparsed = new ProductParsed(productvariant)
|
||||
products.put(releaserepo, productparsed)
|
||||
productcollection.put(releaserepo, productparsed)
|
||||
} else {
|
||||
productparsed = products.get(releaserepo)
|
||||
productparsed = productcollection.get(releaserepo)
|
||||
}
|
||||
return productparsed
|
||||
}
|
||||
|
||||
def parseproductdependencies(LinkedHashMap<String, ProductParsed> products,
|
||||
def parseproductdependencies(LinkedHashMap<String, ProductParsed> productcollection,
|
||||
productreleasemeta,
|
||||
String productreleasefolder,
|
||||
String containingproductvariant,
|
||||
|
|
@ -132,13 +132,13 @@ def parseproductdependencies(LinkedHashMap<String, ProductParsed> products,
|
|||
pd.setreleasestate()
|
||||
if (meta.productinfo.subcomponentname == 'WHOLE') {
|
||||
if (meta.productvariant() != containingproductvariant) { // Don't add myself
|
||||
addProductEntry(products,
|
||||
addProductEntry(productcollection,
|
||||
meta.productvariant(),
|
||||
meta.releaseinfo.releaserepoURL)
|
||||
productrelease.addProductDependency(pd)
|
||||
}
|
||||
} else if (meta.productvariant() != containingproductvariant) {
|
||||
addProductEntry(products,
|
||||
addProductEntry(productcollection,
|
||||
meta.productvariant(),
|
||||
meta.releaseinfo.releaserepoURL)
|
||||
productrelease.addProductDependency(pd)
|
||||
|
|
@ -151,7 +151,7 @@ def parseproductdependencies(LinkedHashMap<String, ProductParsed> products,
|
|||
}
|
||||
}
|
||||
|
||||
def parseproductrepo(LinkedHashMap<String, ProductParsed> products,
|
||||
def parseproductrepo(LinkedHashMap<String, ProductParsed> productcollection,
|
||||
String productrepo,
|
||||
String productreleasefolder) {
|
||||
def LinkedHashMap<String, ArrayList<String>> shatagmap = gh.getremoteshatagmap(productrepo)
|
||||
|
|
@ -182,7 +182,7 @@ def parseproductrepo(LinkedHashMap<String, ProductParsed> products,
|
|||
|
||||
if (!productvariant) {
|
||||
productvariant = productreleasemeta.productvariant()
|
||||
pp = addProductEntry(products,
|
||||
pp = addProductEntry(productcollection,
|
||||
productvariant,
|
||||
productrepo)
|
||||
echo "Productvariant: ${pp.productvariant} created"
|
||||
|
|
@ -192,7 +192,7 @@ def parseproductrepo(LinkedHashMap<String, ProductParsed> products,
|
|||
productreleasemeta.jenkinsbuildinfo.builddate,
|
||||
tags)
|
||||
echo "Productrelease: ${productrelease.sha} created"
|
||||
parseproductdependencies(products,
|
||||
parseproductdependencies(productcollection,
|
||||
productreleasemeta,
|
||||
productreleasefolder,
|
||||
productvariant,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue