Merge dev into master: SSH_KEY_PATH ???

This commit is contained in:
Claude Code
2026-05-22 19:34:02 +09:00

10
Jenkinsfile vendored
View File

@@ -18,7 +18,7 @@ pipeline {
BACKUP_FILE = "${TOMCAT_HOME}/backup/sake_batch.war.bak" BACKUP_FILE = "${TOMCAT_HOME}/backup/sake_batch.war.bak"
// SSH 키 (쇼핑몰과 동일하게 주석 처리 - jenkins 기본 키 사용) // SSH 키 (쇼핑몰과 동일하게 주석 처리 - jenkins 기본 키 사용)
// SSH_KEY_PATH = "/var/lib/jenkins/.ssh/batch_server_key" SSH_KEY_PATH = "/var/lib/jenkins/.ssh/batch_server_key"
} }
stages { stages {
@@ -44,7 +44,7 @@ pipeline {
name: 'Batch Server', name: 'Batch Server',
host: "${env.SERVER_IP}", host: "${env.SERVER_IP}",
user: "${env.SERVER_USER}", user: "${env.SERVER_USER}",
// identityFile: "${env.SSH_KEY_PATH}", identityFile: "${env.SSH_KEY_PATH}",
allowAnyHosts: true allowAnyHosts: true
], command: """ ], command: """
if [ -f ${env.DEPLOY_FILE} ]; then if [ -f ${env.DEPLOY_FILE} ]; then
@@ -66,7 +66,7 @@ pipeline {
name: 'Batch Server', name: 'Batch Server',
host: "${env.SERVER_IP}", host: "${env.SERVER_IP}",
user: "${env.SERVER_USER}", user: "${env.SERVER_USER}",
// identityFile: "${env.SSH_KEY_PATH}", identityFile: "${env.SSH_KEY_PATH}",
allowAnyHosts: true allowAnyHosts: true
], from: "build/libs/${env.APP_NAME}.war", ], from: "build/libs/${env.APP_NAME}.war",
into: "${env.DEPLOY_FILE}" into: "${env.DEPLOY_FILE}"
@@ -75,7 +75,7 @@ pipeline {
name: 'Batch Server', name: 'Batch Server',
host: "${env.SERVER_IP}", host: "${env.SERVER_IP}",
user: "${env.SERVER_USER}", user: "${env.SERVER_USER}",
// identityFile: "${env.SSH_KEY_PATH}", identityFile: "${env.SSH_KEY_PATH}",
allowAnyHosts: true allowAnyHosts: true
], command: """ ], command: """
${env.TOMCAT_HOME}/bin/shutdown.sh || true ${env.TOMCAT_HOME}/bin/shutdown.sh || true
@@ -98,7 +98,7 @@ pipeline {
name: 'Batch Server', name: 'Batch Server',
host: "${env.SERVER_IP}", host: "${env.SERVER_IP}",
user: "${env.SERVER_USER}", user: "${env.SERVER_USER}",
// identityFile: "${env.SSH_KEY_PATH}", identityFile: "${env.SSH_KEY_PATH}",
allowAnyHosts: true allowAnyHosts: true
], command: """ ], command: """
if [ -f ${env.BACKUP_FILE} ]; then if [ -f ${env.BACKUP_FILE} ]; then