fix: Jenkins 트리거 URL — host에서 localhost로 치환

.env의 host.docker.internal은 Docker용이므로 post-receive hook 실행 시
127.0.0.1로 바꿔 Jenkins 빌드를 큐에 등록한다.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Macbook
2026-06-14 16:47:34 +09:00
parent 74656a9d28
commit a76cc2b1e8
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -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:-}}"