Jenkins build
Some checks failed
test/timeline-frontend/pipeline/head There was a failure building this commit
Some checks failed
test/timeline-frontend/pipeline/head There was a failure building this commit
This commit is contained in:
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@@ -52,14 +52,12 @@ pipeline {
|
||||
if (fileExists('package.json')) {
|
||||
echo "package.json found"
|
||||
|
||||
// 安装 pnpm
|
||||
sh 'npm install -g pnpm'
|
||||
|
||||
// 使用 pnpm 安装依赖
|
||||
sh 'pnpm install --frozen-lockfile'
|
||||
sh 'npm install'
|
||||
|
||||
// 构建项目
|
||||
sh 'pnpm run build'
|
||||
sh 'npm run build'
|
||||
|
||||
// 检查 dist 目录是否存在
|
||||
if (!fileExists('dist')) {
|
||||
|
||||
Reference in New Issue
Block a user