Fix issue for setting updates repo version in tests
Change-Id: Iac4cf96f97e7849536f50b923472c0ed4ac09de7
Related-Prod: PROD-34057
diff --git a/test-cookiecutter-reclass.groovy b/test-cookiecutter-reclass.groovy
index 95e5240..16a57b6 100644
--- a/test-cookiecutter-reclass.groovy
+++ b/test-cookiecutter-reclass.groovy
@@ -59,7 +59,7 @@
// version of debRepos, aka formulas|reclass|ubuntu
testDistribRevision = env.DISTRIB_REVISION ?: 'nightly'
-updatesVersion = null
+updatesVersion = ''
// Name of sub-test chunk job
chunkJobName = "test-mk-cookiecutter-templates-chunk"
@@ -223,10 +223,10 @@
}
// 'binary' branch logic w\o 'release/' prefix
if (testDistribRevision.contains('/')) {
- testDistribRevision = testDistribRevision.split('/')[-1]
if (testDistribRevision.contains('proposed')) {
updatesVersion = 'proposed'
}
+ testDistribRevision = testDistribRevision.split('/')[-1]
}
// 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.