|
@@ -139,16 +139,18 @@ pipeline {
|
|
|
currentBuild.result == 'FAILURE'
|
|
|
return
|
|
|
} else {
|
|
|
- withCredentials([usernamePassword(credentialsId: 'jenkins', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) {
|
|
|
- sh '''echo "Ваши ключ, сертификаты и конфигурационный файл для подключения к infoclinica.ru" | email -s "Your Certs and Key" \
|
|
|
- -f ${JENKINS_MAIL} \
|
|
|
- -r ${SMTP_SERVER} \
|
|
|
- -m login \
|
|
|
- -u ${USERNAME} \
|
|
|
- -i ${PASSWORD} \
|
|
|
- -a ${WORKSPACE}/${PKI_GIT_NAME}/open/easy-rsa/client_keys/sds-${key_name}.zip \
|
|
|
+ withEnv(["zip=${fileZip}"]) {
|
|
|
+ withCredentials([usernamePassword(credentialsId: 'jenkins', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) {
|
|
|
+ sh '''echo "Ваши ключ, сертификаты и конфигурационный файл для подключения к infoclinica.ru" | email -s "Your Certs and Key" \
|
|
|
+ -f ${JENKINS_MAIL} \
|
|
|
+ -r ${SMTP_SERVER} \
|
|
|
+ -m login \
|
|
|
+ -u ${USERNAME} \
|
|
|
+ -i ${PASSWORD} \
|
|
|
+ -a ${zip} \
|
|
|
${client_mail}
|
|
|
'''
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|