Do an integrity check at release time; Print out information about components
This commit is contained in:
parent
4b720911b4
commit
4ad0007dce
2 changed files with 3 additions and 22 deletions
|
|
@ -110,15 +110,8 @@ def publishhierarchy(releasemeta, String customer, String softwarerelease, Strin
|
|||
// 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]
|
||||
for (key in componentReleaseInfoVersionUnique.keySet()) {
|
||||
def releaseinfo = componentReleaseInfoVersionUnique[key]
|
||||
recallcomponent(releaseinfo, softwarerelease)
|
||||
}
|
||||
stripgithistory()
|
||||
|
|
|
|||
|
|
@ -341,20 +341,8 @@ def releasehierarchy(buildmeta, String maxdepth, String otherreleasetags, String
|
|||
// Walk the meta information to a max depth, looking for components to release
|
||||
(componentReleaseInfo, componentReleaseInfoVersionUnique) = buildmeta.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()) {
|
||||
if (componentReleaseInfo.size() != componentReleaseInfoVersionUnique.size()) {
|
||||
error "There are 2 or more versions of the same component being used in this hierarchy: Is this correct?"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue