Add WA for generation old releases
Change-Id: Ia4cc9b2db73f71861ed4e23c74375b68aa0df52b
Closes-bug: PROD-25732 (PROD:25732)
diff --git a/generate-cookiecutter-products.groovy b/generate-cookiecutter-products.groovy
index 515fcb6..33a3f60 100644
--- a/generate-cookiecutter-products.groovy
+++ b/generate-cookiecutter-products.groovy
@@ -73,6 +73,11 @@
common.warningMsg("Binary release: ${distribRevision} not exist. Fallback to 'proposed'! ")
distribRevision = 'proposed'
}
+ // (azvyagintsev) WA for PROD-25732
+ if (context.cookiecutter_template_url.contains('gerrit.mcp.mirantis.com/mk/cookiecutter-templates')) {
+ common.warningMsg('Apply WA for PROD-25732')
+ context.cookiecutter_template_url = 'ssh://gerrit.mcp.mirantis.com:29418/mk/cookiecutter-templates.git'
+ }
common.warningMsg("Fetching:\n" +
"DISTRIB_REVISION from ${distribRevision}")
common.infoMsg("Using context:\n" + context)
@@ -246,7 +251,7 @@
sh(returnStatus: true, script: "tar -czf output-${context['cluster_name']}/${context['cluster_name']}.tar.gz --exclude='*@tmp' -C ${modelEnv} .")
archiveArtifacts artifacts: "output-${context['cluster_name']}/${context['cluster_name']}.tar.gz"
- if(RequesterEmail != '' && !RequesterEmail.contains('example')){
+ if (RequesterEmail != '' && !RequesterEmail.contains('example')) {
emailext(to: RequesterEmail,
attachmentsPattern: "output-${context['cluster_name']}/*",
body: "Mirantis Jenkins\n\nRequested reclass model ${context['cluster_name']} has been created and attached to this email.\nEnjoy!\n\nMirantis",