Set version of updates repo if needed
Change to proposed if tests for release/proposed
Change-Id: I9ca1363dd8fbf62f28d34a4c6bba5e272d660356
Related-Prod: PROD-34057
diff --git a/src/com/mirantis/mk/SaltModelTesting.groovy b/src/com/mirantis/mk/SaltModelTesting.groovy
index 1b9b3e8..148cb6f 100644
--- a/src/com/mirantis/mk/SaltModelTesting.groovy
+++ b/src/com/mirantis/mk/SaltModelTesting.groovy
@@ -103,10 +103,11 @@
def defaultRepos = readYaml text: defaultExtraReposYaml
// Don't check for magic, if set explicitly
if (updateSaltFormulas) {
+ def updateSaltFormulasRev = config.get('updateSaltFormulasRev', distribRevision)
if (!oldRelease && distribRevision != releaseVersionQ4) {
defaultRepos['repo']['mcp_saltformulas_update'] = [
- 'source' : "deb [arch=amd64] http://mirror.mirantis.com/update/${distribRevision}/salt-formulas/xenial xenial main",
- 'repo_key': "http://mirror.mirantis.com/update/${distribRevision}/salt-formulas/xenial/archive-salt-formulas.key"
+ 'source' : "deb [arch=amd64] http://mirror.mirantis.com/update/${updateSaltFormulasRev}/salt-formulas/xenial xenial main",
+ 'repo_key': "http://mirror.mirantis.com/update/${updateSaltFormulasRev}/salt-formulas/xenial/archive-salt-formulas.key"
]
}
}