fix: 修改 jenkins 配置

crsec
时启龙 2024-03-14 14:19:13 +08:00
parent 8402a11818
commit 20d1e2d7f0
1 changed files with 4 additions and 6 deletions

10
Jenkinsfile vendored
View File

@ -1,10 +1,8 @@
@Library('jgpl') _
webPipeline([
onBuildInstallShell:{->
return """
npm install url-loader --userconfig ${env.NPM_CONFIG_USERCONFIG} --no-package-lock
pnpm install -no-frozen-lockfile
pnpm run build || echo 'Ignore build error !!!'
"""
},
return """
pnpm install --no-prefer-frozen-lockfile
pnpm run build || echo 'Ignore build error !!!'
"""}
])