Fix CC model for released-heat* envs
CC contexts for 'released-heat-cicd-pike-contrail41-sl'
and 'released-heat-cicd-pike-dvr-sl' envs were missing
jenkins_pipelines_branch variable. Consequently,
shared-salt.MACRO_GENERATE_COOKIECUTTER_MODEL macro was not
updating this variable with a value provided by
JENKINS_PIPELINE_BRANCH jenkins job param.
As a result jenkins_pipelines_branch model parameter of the
deployed env was set by cookiecutter-templates as:
jenkins_pipelines_branch: "release/${_param:mcp_version}"
Change-Id: Ibc7285607d7ed066c989af1702a10825d5317f46
Related-Prod:PROD-34612
diff --git a/tcp_tests/templates/shared-salt.yaml b/tcp_tests/templates/shared-salt.yaml
index 2026685..0307478 100644
--- a/tcp_tests/templates/shared-salt.yaml
+++ b/tcp_tests/templates/shared-salt.yaml
@@ -486,8 +486,8 @@
sed -i 's/mcp_version:.*/mcp_version: {{ REPOSITORY_SUITE }}/g' {{ CLUSTER_CONTEXT_PATH }}
{%- if JENKINS_PIPELINE_BRANCH != '' %}
# Escape / with \/
- escaped_branch=$(echo {{ JENKINS_PIPELINE_BRANCH }} | sed "s/\//\\\\\//g")
- sed -i "s/jenkins_pipelines_branch: .*/jenkins_pipelines_branch: $escaped_branch/g" {{ CLUSTER_CONTEXT_PATH }}
+ escaped_branch=$(echo {{ JENKINS_PIPELINE_BRANCH }} | sed s'/\//\\\//g')
+ sed -i "s/jenkins_pipelines_branch:.*/jenkins_pipelines_branch: '$escaped_branch'/g" {{ CLUSTER_CONTEXT_PATH }}
{%- endif %}
{%- if CONTROL_VLAN %}
sed -i 's/control_vlan: .*/control_vlan: {{ CONTROL_VLAN }}/g' {{ CLUSTER_CONTEXT_PATH }}