Do an integrity check at release time; Print out information about components
This commit is contained in:
parent
50db2ba7df
commit
59a74b1f9a
2 changed files with 29 additions and 4 deletions
|
|
@ -107,10 +107,16 @@ def publishhierarchy(releasemeta, String customer, String softwarerelease, Strin
|
|||
resetfolders()
|
||||
preconditions()
|
||||
|
||||
// Walk the meta information to a max depth, looking for artifacts to import for release
|
||||
componentReleaseInfo = releasemeta.releasewalkerunique(md)
|
||||
// Walk the meta information to a max depth, looking for artifacts to publish
|
||||
(componentReleaseInfo, componentReleaseInfoVersionUnique) = releasemeta.releasewalkerunique(md)
|
||||
|
||||
// For each component
|
||||
echo "Components in publish:"
|
||||
for (key in componentReleaseInfo.keySet()) {
|
||||
def releaseinfo = componentReleaseInfo[key]
|
||||
echo "${releaseinfo.offsetpath} : ${releaseinfo.meta.componentversionuniqueidentifier()}"
|
||||
}
|
||||
|
||||
for (key in componentReleaseInfo.keySet()) {
|
||||
def releaseinfo = componentReleaseInfo[key]
|
||||
recallcomponent(releaseinfo, softwarerelease)
|
||||
|
|
|
|||
|
|
@ -338,8 +338,27 @@ def releasehierarchy(buildmeta, String maxdepth, String otherreleasetags, String
|
|||
resetfolders()
|
||||
preconditions()
|
||||
|
||||
// Walk the meta information to a max depth, looking for artifacts to import for release
|
||||
componentReleaseInfo = buildmeta.releasewalkerunique(md)
|
||||
// Walk the meta information to a max depth, looking for components to release
|
||||
(componentReleaseInfo, componentReleaseInfoVersionUnique) = releasemeta.releasewalkerunique(md)
|
||||
|
||||
|
||||
echo "Components in release:"
|
||||
for (key in componentReleaseInfo.keySet()) {
|
||||
def releaseinfo = componentReleaseInfo[key]
|
||||
echo "${releaseinfo.offsetpath} : ${releaseinfo.meta.componentversionuniqueidentifier()}"
|
||||
}
|
||||
|
||||
echo "Version unique components in release:"
|
||||
for (key in componentReleaseInfoVersionUnique.keySet()) {
|
||||
def releaseinfo = componentReleaseInfoVersionUnique[key]
|
||||
echo "${releaseinfo.offsetpath} : ${releaseinfo.meta.componentversionuniqueidentifier()}"
|
||||
}
|
||||
|
||||
if (DO_INTEGRITY_CHECK == "true") {
|
||||
if (componentReleaseInfo.size() != componentReleaseInfoVersionUnique()) {
|
||||
error "There are 2 or more versions of the same component being used in this hierarchy: Is this correct?"
|
||||
}
|
||||
}
|
||||
|
||||
def toplevelid = buildmeta.componentidentifier()
|
||||
// For each component
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue