Update the env

This commit is contained in:
YuCheng Hu
2026-06-09 14:05:48 -04:00
parent 976d2797a0
commit 8c3cc2e720
Vendored
+8 -5
View File
@@ -67,12 +67,15 @@ pipeline {
}
}
stage('Deploy to Cloudflare') {
stage('Deploy to Cloudflare') {
steps {
// Install Wrangler locally for the project
sh 'pnpm add -D wrangler@latest'
// Deploy
sh "pnpm wrangler pages deploy ./.vitepress/dist --project-name=${PRJ_NAME} --branch=main"
script {
def branchArg = env.CHANGE_ID
? "--branch=pr-${env.CHANGE_ID}"
: "--branch=${env.BRANCH_NAME}"
sh "pnpm wrangler pages deploy ./dist --project-name=${PRJ_NAME} ${branchArg}"
}
}
}