Compare commits
2 Commits
c45536969d
...
d8f88245e9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d8f88245e9 | ||
|
|
73be94a965 |
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user