Browse Source

Merge branch 'huangzqa-fix-build-20210302' into 'develop'

build(修改为打包上传包): 修改为打包上传包

See merge request dcuc/dcuc-coder-service!3
黄资权 4 years ago
parent
commit
a78b0374f8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Jenkinsfile

+ 2 - 1
Jenkinsfile

@@ -26,6 +26,7 @@ pipeline {
                 type: 'PT_CHECKBOX',
                 value: 'x86,arm64',
                 visibleItemCount: 5
+        // 需修改对应的镜像名称
         string defaultValue: 'bus.ga/jzywb/dcuc/', description: '请填写打的镜像通用前缀名称,注意最后面要加 / ', name: 'imagePrefix', trim: false
     }
     stages {
@@ -34,7 +35,7 @@ pipeline {
                 script {
                     color.PrintMes('执行mvn打包', 'green')
                     //使用mvn方法打包,并传入打包参数.根据实际情况修改打包策略
-                    build.Build('mvn', 'mvn clean package -DskipTests=true', 'master')
+                    build.Build('mvn', 'mvn clean deploy -DskipTests=true', 'master')
                 }
             }
         }