Browse Source

修改docker配置

zq940222 2 months ago
parent
commit
7b3623e60c
1 changed files with 5 additions and 5 deletions
  1. 5 5
      Jenkinsfile

+ 5 - 5
Jenkinsfile

@@ -29,7 +29,10 @@ pipeline {
             steps {
                 script {
                     echo '****************************** 公共工程打包 ******************************'
-                    sh "mvn -f ${PROJECT_SERVICE_COMMON_NAME} clean install -Dmaven.test.skip=true"
+                    sh """
+                        mvn clean install -Dmaven.test.skip=true
+                        mvn -f ${PROJECT_SERVICE_COMMON_NAME} clean install -Dmaven.test.skip=true
+                    """
                 }
             }
         }
@@ -38,10 +41,7 @@ pipeline {
             steps {
                 script {
                     echo '****************************** 微服务工程打包 ******************************'
-                    sh """
-                        cd ${params.SERVICE}
-                        mvn clean install -Dmaven.test.skip=true
-                    """
+                    sh "mvn -f ${params.SERVICE} clean install -Dmaven.test.skip=true"
                 }
             }
         }