Compare commits
2 Commits
v2.0.0-bet
...
6a54ecd003
| Author | SHA1 | Date | |
|---|---|---|---|
| 6a54ecd003 | |||
| 8dea27d14a |
1
.node-version
Normal file
1
.node-version
Normal file
@@ -0,0 +1 @@
|
|||||||
|
v22.22.0
|
||||||
18
Jenkinsfile
vendored
18
Jenkinsfile
vendored
@@ -5,6 +5,19 @@ pipeline {
|
|||||||
timestamps()
|
timestamps()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
parameters {
|
||||||
|
choice(
|
||||||
|
name: 'XSH_DEPLOY_TARGET',
|
||||||
|
choices: ['main'],
|
||||||
|
description: 'main:眩生花线上版本'
|
||||||
|
)
|
||||||
|
booleanParam(
|
||||||
|
name: 'XSH_DEPLOY_TO_PRODUCTION',
|
||||||
|
defaultValue: true,
|
||||||
|
description: '是否自动部署到线上环境(否则只构建产物)\n* 仅在 main 分支生效'
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
tools {
|
tools {
|
||||||
nodejs 'NodeJS 22.22'
|
nodejs 'NodeJS 22.22'
|
||||||
}
|
}
|
||||||
@@ -32,7 +45,10 @@ pipeline {
|
|||||||
|
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
when {
|
when {
|
||||||
expression { currentBuild.currentResult == 'SUCCESS' }
|
allOf {
|
||||||
|
expression { currentBuild.currentResult == 'SUCCESS' }
|
||||||
|
expression { env.TAG_NAME != null }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
sh '''
|
sh '''
|
||||||
|
|||||||
9841
pnpm-lock.yaml
generated
9841
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user