Update Jenkinsfile
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@@ -11,7 +11,7 @@ pipeline {
|
|||||||
|
|
||||||
// 앱 정보
|
// 앱 정보
|
||||||
APP_NAME = 'gcone_batch'
|
APP_NAME = 'gcone_batch'
|
||||||
TOMCAT_HOME = '/usr/local/tomcat'
|
TOMCAT_HOME = '/usr/local/tomcat_dev'
|
||||||
DEPLOY_PATH = "${TOMCAT_HOME}/webapps"
|
DEPLOY_PATH = "${TOMCAT_HOME}/webapps"
|
||||||
BACKUP_PATH = "${TOMCAT_HOME}/backup"
|
BACKUP_PATH = "${TOMCAT_HOME}/backup"
|
||||||
DEPLOY_FILE = "${TOMCAT_HOME}/webapps/${APP_NAME}.war"
|
DEPLOY_FILE = "${TOMCAT_HOME}/webapps/${APP_NAME}.war"
|
||||||
@@ -24,7 +24,7 @@ pipeline {
|
|||||||
stages {
|
stages {
|
||||||
stage('Checkout') {
|
stage('Checkout') {
|
||||||
steps {
|
steps {
|
||||||
git branch: 'master',
|
git branch: 'dev',
|
||||||
credentialsId: 'itfirst',
|
credentialsId: 'itfirst',
|
||||||
url: 'http://115.68.207.90:3000/itfirst/sake_batch.git'
|
url: 'http://115.68.207.90:3000/itfirst/sake_batch.git'
|
||||||
}
|
}
|
||||||
@@ -90,7 +90,7 @@ pipeline {
|
|||||||
|
|
||||||
post {
|
post {
|
||||||
success {
|
success {
|
||||||
echo '✅ sake_batch 배포 완료'
|
echo '✅ sake_batch 개발 배포 완료'
|
||||||
}
|
}
|
||||||
failure {
|
failure {
|
||||||
script {
|
script {
|
||||||
@@ -112,7 +112,7 @@ pipeline {
|
|||||||
fi
|
fi
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
echo '❌ 배포 실패 - 롤백 처리됨'
|
echo '❌ 게빌 배포 실패 - 롤백 처리됨'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user