添加jenkins构建脚本

This commit is contained in:
zhouxiunai
2018-11-04 13:54:32 +08:00
parent 26af8fa1e7
commit 82ad85f055
Vendored
+16
View File
@@ -0,0 +1,16 @@
pipeline {
agent {
docker {
image 'maven:3-alpine'
args '-v /root/.m2:/root/.m2'
}
}
stages {
stage('build') {
steps {
sh 'mvn clean package dockerfile:build dockerfile:push -Dmaven.test.skip=true'
}
}
}
}