fix
Some checks failed
main-branch-frovide/pipeline/head There was a failure building this commit

This commit is contained in:
Insub Kim 2025-06-05 07:37:33 +00:00
parent f33a8c8bfe
commit f6568cc8fc

2
Jenkinsfile vendored
View File

@ -57,7 +57,7 @@ pipeline {
sshagent([env.JENKINS_SSH_CREDENTIAL_ID]) {
script {
// 현재 Nginx가 바라보고 있는 포트를 배포 서버에서 가져옴
def nginxConfPath = "/etc/nginx/conf.d/svelte_app_upstream.conf" // Nginx 설정 파일 경로
def nginxConfPath = "/etc/nginx/sites-available/frovide.conf" // Nginx 설정 파일 경로
def currentActivePortOutput = sh(script: "ssh ${env.DEPLOY_USER}@${env.DEPLOY_HOST} 'grep -oP \"server 127.0.0.1:\\\\K[0-9]+\" ${nginxConfPath} | head -n 1'", returnStdout: true).trim()
if (currentActivePortOutput == "") {