Set version of updates repo if needed
Change to proposed if tests for release/proposed
Change-Id: Id933aedd8c5b51dccee510d85b19d523af7f313b
Related-Prod: PROD-34057
diff --git a/test-cookiecutter-reclass.groovy b/test-cookiecutter-reclass.groovy
index 9c34f58..95e5240 100644
--- a/test-cookiecutter-reclass.groovy
+++ b/test-cookiecutter-reclass.groovy
@@ -59,6 +59,7 @@
// version of debRepos, aka formulas|reclass|ubuntu
testDistribRevision = env.DISTRIB_REVISION ?: 'nightly'
+updatesVersion = null
// Name of sub-test chunk job
chunkJobName = "test-mk-cookiecutter-templates-chunk"
@@ -85,6 +86,7 @@
modelFile : "contexts/${modelFile}.yml",
DISTRIB_REVISION: testDistribRevision,
useExtraRepos : useExtraRepos,
+ updatesVersion : updatesVersion,
]
def _values_string = JsonOutput.toJson(_values << extraVars)
def chunkJob = build job: chunkJobName, parameters: [
@@ -222,6 +224,9 @@
// 'binary' branch logic w\o 'release/' prefix
if (testDistribRevision.contains('/')) {
testDistribRevision = testDistribRevision.split('/')[-1]
+ if (testDistribRevision.contains('proposed')) {
+ updatesVersion = 'proposed'
+ }
}
// Check if we are going to test bleeding-edge release, which doesn't have binary release yet
// After 2018q4 releases, need to also check 'static' repo, for example ubuntu.