Allign FORMULAS_REVISION=> distribRevision
Change-Id: I64b2a325d58f466fddfab986388ffe71f958d32a
diff --git a/src/com/mirantis/mk/Common.groovy b/src/com/mirantis/mk/Common.groovy
index 87b1696..3af2a92 100644
--- a/src/com/mirantis/mk/Common.groovy
+++ b/src/com/mirantis/mk/Common.groovy
@@ -908,7 +908,7 @@
def debianExtraRepos(configYaml) {
def config = readYaml text: configYaml
- def distribRevision = config.get('distrib_revision', 'nightly')
+ def distribRevision = config.get('distribRevision', 'nightly')
if (config.get('repo', false)) {
for (String repo in config['repo'].keySet()) {
source = config['repo'][repo]['source'].replace('SUB_DISTRIB_REVISION', distribRevision)
diff --git a/src/com/mirantis/mk/SaltModelTesting.groovy b/src/com/mirantis/mk/SaltModelTesting.groovy
index 2d1a888..7ba3a4e 100644
--- a/src/com/mirantis/mk/SaltModelTesting.groovy
+++ b/src/com/mirantis/mk/SaltModelTesting.groovy
@@ -5,7 +5,7 @@
were tests successful or not.
* @param config - LinkedHashMap with configuration params:
* dockerHostname - (required) Hostname to use for Docker container.
- * formulasRevision - (optional) Revision of packages to use (default proposed).
+ * distribRevision - (optional) Revision of packages to use (default proposed).
* runCommands - (optional) Dict with closure structure of body required tests. For example:
* [ '001_Test': { sh("./run-some-test") }, '002_Test': { sh("./run-another-test") } ]
* Before execution runCommands will be sorted by key names. Alpabetical order is preferred.
@@ -26,7 +26,7 @@
// setup options
def defaultContainerName = 'test-' + UUID.randomUUID().toString()
def dockerHostname = config.get('dockerHostname', defaultContainerName)
- def formulasRevision = config.get('formulasRevision', 'proposed')
+ def distribRevision = config.get('distribRevision', 'proposed')
def runCommands = config.get('runCommands', [:])
def runFinally = config.get('runFinally', [:])
def baseRepoPreConfig = config.get('baseRepoPreConfig', true)
@@ -35,7 +35,7 @@
def dockerMaxCpus = config.get('dockerMaxCpus', 4)
def dockerExtraOpts = config.get('dockerExtraOpts', [])
def envOpts = config.get('envOpts', [])
- envOpts.add("DISTRIB_REVISION=${formulasRevision}")
+ envOpts.add("DISTRIB_REVISION=${distribRevision}")
def dockerBaseOpts = [
'-u root:root',
"--hostname=${dockerHostname}",
@@ -47,7 +47,7 @@
def dockerOptsFinal = (dockerBaseOpts + dockerExtraOpts).join(' ')
def defaultExtraReposYaml = '''
---
-distrib_revision: 'nightly'
+distribRevision: 'nightly'
aprConfD: |-
APT::Get::AllowUnauthenticated 'true';
APT::Get::Install-Suggests 'false';
@@ -164,7 +164,7 @@
sh "rm -rf ${env.WORKSPACE}/old ${env.WORKSPACE}/new"
sh "mkdir -p ${env.WORKSPACE}/old ${env.WORKSPACE}/new"
def configRun = [
- 'formulasRevision': distribRevision,
+ 'distribRevision': distribRevision,
'dockerExtraOpts' : [
"-v /srv/salt/reclass:/srv/salt/reclass:ro",
"-v /etc/salt:/etc/salt:ro",