Update Jenkinsfile

This commit is contained in:
LOOHP 2020-08-09 00:52:10 +08:00 committed by GitHub
parent 192cc02ec2
commit e94ed4389d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 10 deletions

23
Jenkinsfile vendored
View File

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