Check for incomplete builds when releasing
This commit is contained in:
parent
4925740073
commit
21dbda07af
2 changed files with 13 additions and 6 deletions
|
|
@ -603,6 +603,12 @@ class MetaInfo extends GISJsonSerialised {
|
|||
|
||||
def deserialiseJson(String filepath) {
|
||||
script.echo("Deserialising JSON at file: ${filepath}")
|
||||
File jsonfile = new File(filepath)
|
||||
def jsonfiletext = jsonfile.getText()
|
||||
|
||||
echo "File contents: ${jsonfiletext}"
|
||||
|
||||
|
||||
def rawmeta = script.readJSON(file: filepath)
|
||||
deserialiseJson(rawmeta)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -422,12 +422,13 @@ def releasehierarchy(buildmeta, String maxdepth, String otherreleasetags, String
|
|||
if (componentReleaseInfo.size() != componentReleaseInfoVersionUnique.size()) {
|
||||
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]
|
||||
echo "${key}: ${buildinfo.jenkinsbuildinfo.builddate} ${buildinfo.jenkinsbuildinfo.isfullbuild} ${buildinfo.jenkinsbuildinfo} ${buildinfo.jenkinsbuildinfo.isFullBuild()}"
|
||||
if (!buildinfo.jenkinsbuildinfo.isFullBuild()) {
|
||||
error "The subcomponent: ${buildinfo.componentidentifier()} is not a full build (Some artifacts are missing)"
|
||||
}
|
||||
}
|
||||
|
||||
for (key in componentReleaseInfo.keySet()) {
|
||||
def buildinfo = componentReleaseInfo[key]
|
||||
echo "${key}: ${buildinfo.jenkinsbuildinfo.builddate} ${buildinfo.jenkinsbuildinfo.isfullbuild} ${buildinfo.jenkinsbuildinfo.isFullBuild()}"
|
||||
if (!buildinfo.jenkinsbuildinfo.isFullBuild()) {
|
||||
error "The subcomponent: ${buildinfo.componentidentifier()} is not a full build (Some artifacts are missing)"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue