From a76cc2b1e8ccb77abd65f6b33eddf3f8d27c5bb1 Mon Sep 17 00:00:00 2001 From: Macbook Date: Sun, 14 Jun 2026 16:47:34 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Jenkins=20=ED=8A=B8=EB=A6=AC=EA=B1=B0=20?= =?UTF-8?q?URL=20=E2=80=94=20host=EC=97=90=EC=84=9C=20localhost=EB=A1=9C?= =?UTF-8?q?=20=EC=B9=98=ED=99=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit .env의 host.docker.internal은 Docker용이므로 post-receive hook 실행 시 127.0.0.1로 바꿔 Jenkins 빌드를 큐에 등록한다. Co-authored-by: Cursor --- scripts/trigger-desktop-jenkins-build.sh | 4 ++++ scripts/trigger-mobile-jenkins-build.sh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/scripts/trigger-desktop-jenkins-build.sh b/scripts/trigger-desktop-jenkins-build.sh index 112fb63..7de8dcb 100755 --- a/scripts/trigger-desktop-jenkins-build.sh +++ b/scripts/trigger-desktop-jenkins-build.sh @@ -11,6 +11,10 @@ if [[ -f "$WORK_TREE/.env" ]]; then fi JENKINS_URL="${JENKINS_URL:-${GC_DESKTOP_JENKINS_URL:-http://127.0.0.1:8090}}" +# Docker backend용 host.docker.internal → hook/호스트에서는 localhost +if [[ "$JENKINS_URL" == *host.docker.internal* ]]; then + JENKINS_URL="${JENKINS_URL//host.docker.internal/127.0.0.1}" +fi JENKINS_JOB="${JENKINS_JOB:-${GC_DESKTOP_JENKINS_JOB:-goldenChart-Desktop-Pipeline}}" JENKINS_USER="${JENKINS_USER:-${GC_DESKTOP_JENKINS_USER:-}}" JENKINS_TOKEN="${JENKINS_TOKEN:-${GC_DESKTOP_JENKINS_TOKEN:-}}" diff --git a/scripts/trigger-mobile-jenkins-build.sh b/scripts/trigger-mobile-jenkins-build.sh index fdcc4b2..af1a7e0 100755 --- a/scripts/trigger-mobile-jenkins-build.sh +++ b/scripts/trigger-mobile-jenkins-build.sh @@ -11,6 +11,10 @@ if [[ -f "$WORK_TREE/.env" ]]; then fi JENKINS_URL="${JENKINS_URL:-${GC_MOBILE_JENKINS_URL:-http://127.0.0.1:8090}}" +# Docker backend용 host.docker.internal → hook/호스트에서는 localhost +if [[ "$JENKINS_URL" == *host.docker.internal* ]]; then + JENKINS_URL="${JENKINS_URL//host.docker.internal/127.0.0.1}" +fi JENKINS_JOB="${JENKINS_JOB:-${GC_MOBILE_JENKINS_JOB:-goldenChart-Mobile-Pipeline}}" JENKINS_USER="${JENKINS_USER:-${GC_MOBILE_JENKINS_USER:-}}" JENKINS_TOKEN="${JENKINS_TOKEN:-${GC_MOBILE_JENKINS_TOKEN:-}}"