|
@@ -45,7 +45,7 @@ pipeline {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- stage("Run Renewal") {
|
|
|
+/* stage("Run Renewal") {
|
|
|
steps {
|
|
|
withCredentials([sshUserPrivateKey(credentialsId: 'provision', keyFileVariable: 'GIT_SSH_KEY', passphraseVariable: '', usernameVariable: 'GIT_SSH_USERNAME')]) {
|
|
|
sh """set +x
|
|
@@ -53,13 +53,13 @@ pipeline {
|
|
|
-e DOMAIN=${DOMAIN} -e CONFIG_DIR=${CONFIG_DIR} -e BACKUP_FILE=${BACKUP_FILE} \
|
|
|
-e JENKINS_MAIL=${JENKINS_MAIL} -e JENKINS_MAIL_USER=${JENKINS_USER} -e JENKINS_MAIL_PASS=${JENKINS_PASS} \
|
|
|
-e git_url=${PKI_GIT_URL} -e SMTP_SERVER=${SMTP_SERVER} -e RECIPIENT_MAIL_BOX=${RECIPIENT_MAIL_BOX} \
|
|
|
- -e "SSHKEY=`cat ${GIT_SSH_KEY}`" -p 53:53/udp -p 53:53/tcp ${IMAGE_NAME} \
|
|
|
+ -e "SSHKEY=`cat ${GIT_SSH_KEY}`" -p 5353:53/udp -p 5353:53/tcp ${IMAGE_NAME} \
|
|
|
/${COMMAND}
|
|
|
"""
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- stage("Update docker secret in SWARM cluster") {
|
|
|
+*/ stage("Update docker secret in SWARM cluster") {
|
|
|
steps {
|
|
|
script {
|
|
|
ENDDATE = sh (script: "echo|openssl s_client -servername ${REGISTRY_OFFICE} -connect ${REGISTRY_OFFICE}:443 2>/dev/null|openssl x509 -noout -enddate", returnStdout: true).trim()
|
|
@@ -71,7 +71,7 @@ pipeline {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- stage("Update certificate and key") {
|
|
|
+/* stage("Update certificate and key") {
|
|
|
steps {
|
|
|
script {
|
|
|
git_clone(PKI_GIT_URL)
|
|
@@ -96,7 +96,7 @@ pipeline {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
+*/ }
|
|
|
post {
|
|
|
always {
|
|
|
echo "CleaningUp work directory"
|