Explorar o código

feat(jenkins): upd

zengzhixiang %!s(int64=2) %!d(string=hai) anos
pai
achega
c467ac054b
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      Jenkinsfile

+ 5 - 1
Jenkinsfile

@@ -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'
             }