From 976d2797a0dcca269293b14a00120dfa1d3262f8 Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Tue, 9 Jun 2026 14:03:51 -0400 Subject: [PATCH] Push Jenkinsfile for build test --- Jenkinsfile | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index da7d5c9..2765e19 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -37,11 +37,9 @@ pipeline { steps { script { // This command should run on the agent to configure the git environment - sh 'git config --global url."https://github.com/".insteadOf git://github.com/' - - sh 'corepack enable' - - sh 'corepack prepare pnpm@latest --activate' + sh 'git config --global url."https://github.com/".insteadOf git://github.com/' + sh 'corepack enable' + sh 'corepack prepare pnpm@latest --activate' } // git branch: 'main', // credentialsId: 'c9d0ec7c-0749-4588-8960-e96cab84d462', @@ -49,12 +47,23 @@ pipeline { } } + stage("Install") { + steps { + sh ''' + pnpm clean --lockfile + pnpm install --no-frozen-lockfile || true + pnpm approve-builds --all + pnpm install --no-frozen-lockfile + ''' + } + } + stage('Build / Package') { steps { - sh 'pnpm approve-builds --all' - sh 'pnpm install --frozen-lockfile' - sh 'npx browserslist@latest --update-db' - sh 'pnpm run docs:build' + sh ''' + npx browserslist@latest --update-db + npm run docs:build + ''' } }