From cef8797cf0812e555572aa0c673fd9a75c07905a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B8=A9=E7=A7=8B=E8=8D=A3?= Date: Sat, 23 Nov 2019 22:16:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Jenkinsfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index b857ab48a..ed62484ad 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,16 +4,16 @@ pipeline { stage('检出') { steps { checkout([$class: 'GitSCM', branches: [[name: env.GIT_BUILD_REF]], - userRemoteConfigs: [[url: env.GIT_REPO_URL, credentialsId: env.CREDENTIALS_ID]]]) + userRemoteConfigs: [[url: env.GIT_REPO_URL, credentialsId: env.CREDENTIALS_ID]]]) } } stage('构建') { steps { sh 'mvn -version' echo '构建中...' - sh 'mvn clean install -Dmaven.test.skip=true' + sh 'mvn -U clean package -Dmaven.test.skip=true' echo '构建完成.' - archiveArtifacts artifacts: '**/target/*.jar', fingerprint: true // 收集构建产物 + archiveArtifacts(artifacts: '**/target/*.jar', fingerprint: true) } } stage('测试') {