4 Commits

Author SHA1 Message Date
6a54ecd003 chore(ide): add Node.js version file for version management
Some checks are pending
aigc/aigc_next_multi/pipeline/pr-main Build queued...
aigc/aigc_next_multi/pipeline/head This commit looks good
2026-02-09 23:53:06 +08:00
8dea27d14a ci: 更新 Jenkinsfile,添加部署参数和构建条件
Some checks are pending
aigc/aigc_next_multi/pipeline/pr-main Build queued...
aigc/aigc_next_multi/pipeline/head This commit looks good
2026-02-09 14:08:10 +08:00
96ddb09ea3 ci: 添加 Lint 阶段到 Jenkinsfile
All checks were successful
aigc/aigc_next_multi/pipeline/pr-main This commit looks good
aigc/aigc_next_multi/pipeline/head This commit looks good
aigc/aigc_next_multi/pipeline/release This commit looks good
2026-02-09 13:37:47 +08:00
4865ca8392 ci: add Jenkinsfile
Some checks are pending
aigc/aigc_next_multi/pipeline/pr-main Build queued...
aigc/aigc_next_multi/pipeline/head This commit looks good
2026-02-09 13:20:19 +08:00
3 changed files with 4636 additions and 5280 deletions

1
.node-version Normal file
View File

@@ -0,0 +1 @@
v22.22.0

74
Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,74 @@
pipeline {
agent any
options {
timestamps()
}
parameters {
choice(
name: 'XSH_DEPLOY_TARGET',
choices: ['main'],
description: 'main眩生花线上版本'
)
booleanParam(
name: 'XSH_DEPLOY_TO_PRODUCTION',
defaultValue: true,
description: '是否自动部署到线上环境(否则只构建产物)\n* 仅在 main 分支生效'
)
}
tools {
nodejs 'NodeJS 22.22'
}
libraries {
lib('xsh-common@main')
}
stages {
stage('Checkout') {
steps {
checkout scm
}
}
stage('Lint') {
steps {
sh '''
corepack enable
pnpm install --registry=https://registry.npmmirror.com
pnpm run lint
'''
}
}
stage('Build') {
when {
allOf {
expression { currentBuild.currentResult == 'SUCCESS' }
expression { env.TAG_NAME != null }
}
}
steps {
sh '''
corepack enable
pnpm install --registry=https://registry.npmmirror.com
pnpm run generate
'''
}
}
}
post {
always {
echo "Build finished: ${currentBuild.currentResult}"
}
success {
archiveArtifacts allowEmptyArchive: true, artifacts: 'dist/**', followSymlinks: true, onlyIfSuccessful: true
}
failure {
echo "Build failed"
}
}
}

9841
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff