Update Jenkinsfile

This commit is contained in:
LOOHP 2020-08-09 00:50:59 +08:00 committed by GitHub
parent 0a63da78c5
commit 192cc02ec2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 11 deletions

8
Jenkinsfile vendored
View File

@ -1,18 +1,14 @@
pipeline {
stage('Build'){
agent {
docker {
image 'maven:3-alpine'
args '-v /root/.m2:/root/.m2'
}
}
options {
skipStagesAfterUnstable()
}
stages {
stage('Build') {
steps {
sh 'mvn clean install'
}
stash includes: 'target/*.jar', name: 'targetfiles'
}
}
}