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('测试') {