浏览代码

missprint

Tomishinets Vladimir 4 年之前
父节点
当前提交
71ff28f23d
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      OFFICERenewalWildcardJenkinsfile

+ 1 - 0
OFFICERenewalWildcardJenkinsfile

@@ -65,6 +65,7 @@ pipeline {
         script {
           git_clone(PKI_GIT_URL)
           git_clone(SWARM_GIT_URL)
+          NEW_ENDDATE = sh (script: "openssl x509 -enddate -noout -in ${CONFIG_DIR}/live/${DOMAIN}/cert.pem", returnStdout: true).trim()
           ENDDATE = sh (script: "echo|openssl s_client -servername ${REGISTRY_OFFICE} -connect ${REGISTRY_OFFICE}:443 2>/dev/null|openssl x509 -noout -enddate", returnStdout: true).trim()
           if (ENDDATE != NEW_ENDDATE) {
             echo "Update docker secret in ${CLUSTER_OFFICE}"