Install Dependencies and Build (SvelteKit) 수정
Some checks failed
main-branch-frovide/pipeline/head There was a failure building this commit
Some checks failed
main-branch-frovide/pipeline/head There was a failure building this commit
This commit is contained in:
parent
0a648b638a
commit
370cbfaaff
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
@ -38,13 +38,15 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Install Dependencies and Build (SvelteKit)') {
|
stage('Install Dependencies and Build (SvelteKit)') {
|
||||||
steps {
|
steps {
|
||||||
sh 'npm install --prefix . --cache ${env.REMOTE_NPM_CACHE_DIR}' // Jenkins 에이전트에서 의존성 설치
|
// Groovy 문자열 내에서 ${} 구문을 사용하여 Jenkins 환경 변수를 직접 삽입합니다.
|
||||||
sh 'npm run build' // SvelteKit 빌드 (build 디렉토리 생성)
|
// sh 명령은 이중 따옴표로 감싸서 Jenkins가 내부의 Groovy 변수를 먼저 치환하게 합니다.
|
||||||
echo "SvelteKit project built successfully."
|
sh "npm install --prefix . --cache ${env.REMOTE_NPM_CACHE_DIR}"
|
||||||
}
|
sh "npm run build"
|
||||||
|
echo "SvelteKit project built successfully."
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage('Determine Active Port') {
|
stage('Determine Active Port') {
|
||||||
steps {
|
steps {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user