Browse Source

отключил обновление zimbra

Tomishinets Vladimir 2 years ago
parent
commit
5e121c4381
1 changed files with 14 additions and 14 deletions
  1. 14 14
      OFFICERenewalWildcardJenkinsfile

+ 14 - 14
OFFICERenewalWildcardJenkinsfile

@@ -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 {