Reconfigure updates.mirantis versioning setting
- Use stable updates repo for released jobs
- Add UPDATES_MIRANTIS_VERSION jenkins param
- Add ability to overwrite repo version in context (upgrade
pre-deployment)
- Set repo version to 'staging' during MCP drivetrain upgrade
Change-Id: I99d70b6802a0215acf8533909f71b7d9f0784621
diff --git a/src/com/mirantis/system_qa/SharedPipeline.groovy b/src/com/mirantis/system_qa/SharedPipeline.groovy
index 0f839c6..e5f1de3 100644
--- a/src/com/mirantis/system_qa/SharedPipeline.groovy
+++ b/src/com/mirantis/system_qa/SharedPipeline.groovy
@@ -220,6 +220,7 @@
def env_lab_ctl_iface = env.LAB_CONTROL_IFACE ?: ''
def update_repo_custom_tag = env.UPDATE_REPO_CUSTOM_TAG ?: ''
def update_version = env.UPDATE_VERSION ?: ''
+ def updates_mirantis_version = env.UPDATES_MIRANTIS_VERSION ?: ''
def parameters = [
string(name: 'PARENT_NODE_NAME', value: "${NODE_NAME}"),
string(name: 'PARENT_WORKSPACE', value: pwd()),
@@ -248,6 +249,7 @@
string(name: 'JENKINS_PIPELINE_BRANCH', value: "${jenkins_pipelines_branch}"),
string(name: 'MCP_COMMON_SCRIPTS_REFS', value: "${mcp_common_scripts_refs}"),
string(name: 'UPDATE_VERSION', value: "${update_version}"),
+ string(name: 'UPDATES_MIRANTIS_VERSION', value: "${updates_mirantis_version}"),
booleanParam(name: 'SHUTDOWN_ENV_ON_TEARDOWN', value: false),
]
@@ -275,6 +277,7 @@
def env_lab_ctl_iface = env.LAB_CONTROL_IFACE ?: ''
def update_repo_custom_tag = env.UPDATE_REPO_CUSTOM_TAG ?: ''
def update_version = env.UPDATE_VERSION ?: ''
+ def updates_mirantis_version = env.UPDATES_MIRANTIS_VERSION ?: ''
def deploy_empty_node = env.DEPLOY_EMPTY_NODE ?: false
def parameters = [
string(name: 'PARENT_NODE_NAME', value: "${NODE_NAME}"),
@@ -298,6 +301,7 @@
string(name: 'MCP_SALT_REPO_KEY', value: "${mcp_salt_repo_key}"),
string(name: 'MCP_COMMON_SCRIPTS_REFS', value: "${mcp_common_scripts_refs}"),
string(name: 'UPDATE_VERSION', value: "${update_version}"),
+ string(name: 'UPDATES_MIRANTIS_VERSION', value: "${updates_mirantis_version}"),
string(name: 'IPMI_USER', value: env_ipmi_user),
string(name: 'IPMI_PASS', value: env_ipmi_pass),
string(name: 'CISCO_PASS', value: env_cisco_pass),
@@ -440,6 +444,7 @@
def jenkins_pipelines_branch=env.JENKINS_PIPELINE_BRANCH ?: ''
def update_repo_custom_tag = env.UPDATE_REPO_CUSTOM_TAG ?: ''
def update_version = env.UPDATE_VERSION ?: ''
+ def updates_mirantis_version = env.UPDATES_MIRANTIS_VERSION ?: ''
def parameters = [
string(name: 'LAB_CONTEXT_NAME', value: "${LAB_CONFIG_NAME}"),
@@ -463,6 +468,7 @@
string(name: 'JENKINS_PIPELINE_BRANCH', value: "${jenkins_pipelines_branch}"),
string(name: 'IMAGE_PATH_CFG01_DAY01', value: env.IMAGE_PATH_CFG01_DAY01),
string(name: 'UPDATE_VERSION', value: "${update_version}"),
+ string(name: 'UPDATES_MIRANTIS_VERSION', value: "${updates_mirantis_version}"),
]