@@ -26,7 +26,11 @@ pipeline {
stage('构建项目') {
steps {
script {
- if ( env.BRANCH_NAME == 'master' ) {
+ if ( env.TAG_NAME ) {
+ nodejs('v16') {
+ sh 'npm run build:prod'
+ }
+ } else if ( env.BRANCH_NAME == 'master' ) {
nodejs('v16') {
sh 'npm run build:prod'
}