zioinfo-esn/Jenkinsfile
DESKTOP-TKLFCPR\ython 969fcd7284 feat(esn): zioinfo ESN ESL 통합 플랫폼 초기 구현
Spring Boot 3.5 / Java 17 + React 19 + PostgreSQL 단일 JAR.
멀티테넌트(LGINNOTEK/LGIT/EMART/ZIOINFO), HCore 게이트웨이 관제,
POS 연동 가격 자동 업데이트, Ollama 온프레미스 AI 알람 분석·POS 분류.
레거시 ESN 6개 프로젝트(Spring Boot 1.5/Java 8) 현대화 통합.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-16 01:07:05 +09:00

65 lines
1.5 KiB
Groovy

pipeline {
agent any
environment {
APP_NAME = 'zioinfo-esn'
DEPLOY_DIR = '/opt/zioinfo-esn/src'
SERVICE = 'zioinfo-esn'
JAR_NAME = 'esn.jar'
}
stages {
stage('Checkout') {
steps {
checkout scm
}
}
stage('Build Frontend') {
steps {
dir('frontend') {
sh 'npm ci'
sh 'npm run build'
}
}
}
stage('Build Backend') {
steps {
dir('backend') {
sh 'mvn clean package -DskipTests -q'
}
}
}
stage('Deploy') {
steps {
sh """
sudo systemctl stop ${SERVICE} || true
sudo mkdir -p ${DEPLOY_DIR}/backend/target
sudo cp backend/target/${JAR_NAME} ${DEPLOY_DIR}/backend/target/${JAR_NAME}
sudo systemctl start ${SERVICE}
"""
}
}
stage('Health Check') {
steps {
sh """
sleep 15
curl -sf http://localhost:8015/actuator/health | grep -q UP || exit 1
"""
}
}
}
post {
success {
echo "zioinfo-esn 배포 성공"
}
failure {
echo "zioinfo-esn 배포 실패 — 롤백 필요"
}
}
}