Merge "Fixed attachemnts sending in cookiecutter job"
diff --git a/generate-cookiecutter-products-auto.groovy b/generate-cookiecutter-products-auto.groovy
index 01c91da..a4757b5 100644
--- a/generate-cookiecutter-products-auto.groovy
+++ b/generate-cookiecutter-products-auto.groovy
@@ -138,7 +138,10 @@
sh(returnStatus: true, script: "tar -zcvf ${clusterName}.tar.gz -C ${modelEnv} .")
archiveArtifacts artifacts: "${clusterName}.tar.gz"
if(EMAIl_ADDRESS != null && EMAIL_ADDRESS){
- emailext(to: EMAIL_ADDRESS, attachmentsPattern: "^${clusterName}\\.tar\\.gz\$", body: "Mirantis Jenkins\n\nRequested reclass model ${clusterName} created and has been attached to this email.\nEnjoy!\n\nMirantis Inc.", subject: "Your Salt model ${clusterName}")
+ emailext(to: EMAIL_ADDRESS,
+ attachmentsPattern: "${clusterName}.tar.gz",
+ body: "Mirantis Jenkins\n\nRequested reclass model ${clusterName} has been created and attached to this email.\nEnjoy!\n\nMirantis",
+ subject: "Your Salt model ${clusterName}")
}
}