젠킨스 파일 수정(1)

This commit is contained in:
김현욱
2026-04-10 14:04:04 +09:00
parent 031a05ed03
commit 2f31b9b306

25
Jenkinsfile vendored
View File

@@ -275,6 +275,20 @@ pipeline {
sleep 10
"""
// Nginx 서버에 정상 페이지로 블록 해제
sshCommand remote: [
name: 'Nginx Server',
host: "${env.NGINX_SERVER_IP}",
user: "${env.NGINX_USER}",
identityFile: "${env.SSH_KEY_PATH}",
allowAnyHosts: true
], command: """
sleep 10
/etc/nginx/webon.sh
"""
echo "점검 web서버 config 구동"
echo "Deploy 완료 (${params.ENVIRONMENT} 환경, ${env.GIT_BRANCH} 브랜치)"
}
}
@@ -320,17 +334,6 @@ pipeline {
}
always {
script {
// Nginx 서버에 정상 페이지로 블록 해제
sshCommand remote: [
name: 'Nginx Server',
host: "${env.NGINX_SERVER_IP}",
user: "${env.NGINX_USER}",
identityFile: "${env.SSH_KEY_PATH}",
allowAnyHosts: true
], command: "/etc/nginx/webon.sh"
echo "점검 web서버 config 구동"
echo '파이프라인 실행이 종료되었습니다.'
if (params.DEPLOY_TARGET in ['ALL', 'WEB_ONLY']) {
// 임시 디렉토리 정리