Update guess-release func
Prod-related: PROD-26253 (PROD:26253)
Change-Id: I59936efe491cb756c0c9142dabc53a9d71199ddc
diff --git a/test-cookiecutter-reclass.groovy b/test-cookiecutter-reclass.groovy
index 27313c7..bcbb755 100644
--- a/test-cookiecutter-reclass.groovy
+++ b/test-cookiecutter-reclass.groovy
@@ -196,8 +196,10 @@
testDistribRevision = testDistribRevision.split('/')[-1]
}
// Check if we are going to test bleeding-edge release, which doesn't have binary release yet
- if (!common.checkRemoteBinary([mcp_version: testDistribRevision]).linux_system_repo_url) {
- common.errorMsg("Binary release: ${testDistribRevision} not exist. Fallback to 'proposed'! ")
+ // After 2018q4 releases, need to also check 'static' repo, for example ubuntu.
+ binTest = checkRemoteBinary(['mcp_version' : testDistribRevision])
+ if (!binTest.linux_system_repo_url || !binTest.linux_system_repo_ubuntu_url) {
+ common.errorMsg("Binary release: ${testDistribRevision} not exist or not full. Fallback to 'proposed'! ")
testDistribRevision = 'proposed'
messages.add("DISTRIB_REVISION => ${testDistribRevision}")
}