Allow quick builds; Don't let releases proceed if a component is missing artifacts because it is not a full build

This commit is contained in:
Dan Hawkins 2021-10-15 10:04:32 +01:00
commit 8332da3c94

View file

@ -420,7 +420,13 @@ def releasehierarchy(buildmeta, String maxdepth, String otherreleasetags, String
if (DO_INTEGRITY_CHECK == "true") {
if (componentReleaseInfo.size() != componentReleaseInfoVersionUnique.size()) {
error "There are 2 or more versions of the same component being used in this hierarchy: Is this correct?"
error "There are 2 or more versions of the same component being used in this hierarchy: Is this correct? (If you ignore this issue, you will get an error much later because the system cannot tag 2 different commits of the associated source code with the same label)"
}
for (key in componentReleaseInfo.keySet()) {
def buildinfo = componentReleaseInfo[key]
if (!buildinfo.jenkinsbuildinfo.isFullBuild()) {
error "The subcomponent: ${buildinfo.componentidentifier()} is not a full build (Some artifacts are missing)"
}
}
}