Commit 3e3d0118 authored by 郭灿峰's avatar 郭灿峰

Update Jenkinsfile

parent fe32bf55
...@@ -2,12 +2,7 @@ pipeline { ...@@ -2,12 +2,7 @@ pipeline {
agent none agent none
stages { stages {
stage('Build') { stage('Build') {
agent { agent any
docker {
image 'maven:3-alpine'
args '-v /root/.m2:/root/.m2'
args '-v /var/run/docker.sock:/var/run/docker.sock'
}
} }
steps { steps {
sh 'mvn clean package' sh 'mvn clean package'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment