fix(deploy): health-watch 사이드카 기동 실패 2건 수정

- compose 명령의 $((10#..)) 는 dash 미지원 → 재시작 루프. 선행 0 제거 후 정수 비교
- Jenkins 가 scripts/ 를 복사하지 않아 마운트 대상 health_watch.py 부재 → Created 상태로 정지

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y83Za98XsNw9zuA4FTUytN
This commit is contained in:
2026-10-12 13:54:58 +09:00
parent 2e1a6e688c
commit 0feaa61bfc
2 changed files with 4 additions and 2 deletions

2
Jenkinsfile vendored
View File

@@ -66,6 +66,8 @@ print('All files OK')
# 소스 동기화 (backend, mcp-server, frontend, docker-compose.yml, docker/)
cp docker-compose.yml ${DEPLOY_DIR}/
cp -r docker/ ${DEPLOY_DIR}/ 2>/dev/null || true
# health-watch 사이드카가 ./scripts/health_watch.py 를 마운트한다 — 없으면 컨테이너가 Created 로 멈춘다(2026-10-12)
mkdir -p ${DEPLOY_DIR}/scripts && cp scripts/health_watch.py ${DEPLOY_DIR}/scripts/
rsync -a --delete backend/ ${DEPLOY_DIR}/backend/ || cp -r backend/ ${DEPLOY_DIR}/backend/
rsync -a --delete mcp-server/ ${DEPLOY_DIR}/mcp-server/ || cp -r mcp-server/ ${DEPLOY_DIR}/mcp-server/
rsync -a --delete frontend/ ${DEPLOY_DIR}/frontend/ || cp -r frontend/ ${DEPLOY_DIR}/frontend/