|
@@ -137,20 +137,20 @@ pipeline {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- stage("Update certificate and key to ZIMBRA") {
|
|
|
- steps {
|
|
|
- script {
|
|
|
- ENDDATE = sh (script: "echo|openssl s_client -servername ${SMTP_SERVER} -connect ${SMTP_SERVER}:443 2>/dev/null|openssl x509 -noout -enddate", returnStdout: true).trim()
|
|
|
- if (ENDDATE != NEW_ENDDATE) {
|
|
|
- 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"
|
|
|
- PLAYBOOK = PKI_GIT_NAME + '/' + DOMAIN + '/wildcard/acme-dns/' + 'mail.yml'
|
|
|
- TARGET_DIR = WORKSPACE + '/' + CONFIG_DIR
|
|
|
- dockerWCrenewal.update_sertificate(PLAYBOOK, TARGET_DIR, SMTP_SERVER, DOMAIN)
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ // stage("Update certificate and key to ZIMBRA") {
|
|
|
+ // steps {
|
|
|
+ // script {
|
|
|
+ // ENDDATE = sh (script: "echo|openssl s_client -servername ${SMTP_SERVER} -connect ${SMTP_SERVER}:443 2>/dev/null|openssl x509 -noout -enddate", returnStdout: true).trim()
|
|
|
+ // if (ENDDATE != NEW_ENDDATE) {
|
|
|
+ // 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"
|
|
|
+ // PLAYBOOK = PKI_GIT_NAME + '/' + DOMAIN + '/wildcard/acme-dns/' + 'mail.yml'
|
|
|
+ // TARGET_DIR = WORKSPACE + '/' + CONFIG_DIR
|
|
|
+ // dockerWCrenewal.update_sertificate(PLAYBOOK, TARGET_DIR, SMTP_SERVER, DOMAIN)
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
}
|
|
|
post {
|
|
|
always {
|