자동빌드 배포 오류 수정
This commit is contained in:
@@ -26,6 +26,9 @@ if [[ -d "$GIT_DIR" ]]; then
|
||||
git --git-dir="$GIT_DIR" --work-tree="$WORK_TREE" checkout -f main 2>/dev/null || true
|
||||
fi
|
||||
|
||||
chmod +x "$WORK_TREE/scripts/"*.sh 2>/dev/null || true
|
||||
"$WORK_TREE/scripts/prepare-desktop-jenkins-build.sh"
|
||||
|
||||
# Jenkins SCM workspace 가 있으면 scripts 를 WORK_TREE 로 동기 (구 스크립트 방지)
|
||||
if [[ -n "${WORKSPACE:-}" && -d "${WORKSPACE}/scripts" && "${WORKSPACE}" != "$WORK_TREE" ]]; then
|
||||
log "Sync scripts: ${WORKSPACE}/scripts → ${WORK_TREE}/scripts"
|
||||
|
||||
Reference in New Issue
Block a user