Browse Source

更新 Jenkinsfile

release_toaliyun_real
温秋荣 6 years ago
parent
commit
cef8797cf0
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      Jenkinsfile

+ 3
- 3
Jenkinsfile View File

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


Loading…
Cancel
Save