change Jenkinsfile
DOCS/docs.isharkfly.com/pipeline/head There was a failure building this commit

This commit is contained in:
2026-06-26 13:57:26 -04:00
parent 1a9820660e
commit 44fa52cd8b
Vendored
+7 -3
View File
@@ -71,10 +71,14 @@ pipeline {
steps {
script {
def branchArg = env.CHANGE_ID
? "--branch=pr-${env.CHANGE_ID}"
: "--branch=${env.BRANCH_NAME}"
? "pr-${env.CHANGE_ID}"
: "${env.BRANCH_NAME}"
sh "pnpm wrangler pages deploy ./.vitepress/dist --project-name=${PRJ_NAME} ${branchArg}"
if (env.BRANCH_NAME == 'main') {
sh 'npx wrangler deploy'
} else {
sh "npx wrangler versions upload --preview-alias ${branchArg}"
}
}
}
}