revert: [deploy] 빌드 캐시 보존 제거 (9GB 캐시 이동 오버헤드 > 빌드 절감)

This commit is contained in:
2026-03-20 07:57:30 +09:00
parent 57358955d9
commit 5ab5277832

6
Jenkinsfile vendored
View File

@@ -71,15 +71,11 @@ pipeline {
}
}
// ── 일반 배포: Checkout (빌드 캐시 보존) ──
// ── 일반 배포: Checkout ──
stage('Checkout') {
when { expression { params.ACTION == 'deploy' } }
steps {
// .next/cache 백업 (증분 빌드용 — mv로 순간 이동, 복사 오버헤드 없음)
sh 'rm -rf /tmp/.next-cache-backup && [ -d .next/cache ] && mv .next/cache /tmp/.next-cache-backup || true'
checkout scm
// .next/cache 복원
sh 'mkdir -p .next && [ -d /tmp/.next-cache-backup ] && mv /tmp/.next-cache-backup .next/cache || true'
script {
env.GIT_COMMIT_MSG = sh(script: "git log -1 --pretty=format:'%s'", returnStdout: true).trim()
}