Browse Source

missprint

Tomishinets Vladimir 4 years ago
parent
commit
19c7c15f9c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      OFFICERenewalWildcardJenkinsfile

+ 2 - 0
OFFICERenewalWildcardJenkinsfile

@@ -95,6 +95,8 @@ pipeline {
             echo "Update certificate and key for ${SMTP_SERVER}"
             echo "Update certificate and key for ${SMTP_SERVER}"
             sh "cat ${PKI_GIT_NAME}/${DOMAIN}/wildcard/acme-dns/letsencrypt.ca.pem >> ${CONFIG_DIR}/live/${DOMAIN}/fullchain.pem"
             sh "cat ${PKI_GIT_NAME}/${DOMAIN}/wildcard/acme-dns/letsencrypt.ca.pem >> ${CONFIG_DIR}/live/${DOMAIN}/fullchain.pem"
             PLAYBOOK = PKI_GIT_NAME + '/' + DOMAIN + '/wildcard/acme-dns/' + 'mail.yml'
             PLAYBOOK = PKI_GIT_NAME + '/' + DOMAIN + '/wildcard/acme-dns/' + 'mail.yml'
+            TARGET_DIR = WORKSPACE + '/' + CONFIG_DIR
+            TARGET_HOST = 'mail' + '.' + DOMAIN
             update_sertificate(PLAYBOOK, TARGET_DIR, SMTP_SERVER, DOMAIN)
             update_sertificate(PLAYBOOK, TARGET_DIR, SMTP_SERVER, DOMAIN)
           }
           }
         }
         }