Update Jenkinsfile

This commit is contained in:
Stas Bezuhlyi 2021-04-01 15:16:45 +03:00 committed by GitHub
parent 1e0f525cc0
commit 0507e80833
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

12
Jenkinsfile vendored
View file

@ -1,10 +1,5 @@
pipeline { pipeline {
agent { agent any
docker {
image 'maven:3-alpine'
args '-v /root/.m2:/root/.m2'
}
}
stages { stages {
stage('Checkout SCM') { stage('Checkout SCM') {
@ -22,8 +17,7 @@ pipeline {
} }
stage('Build') { stage('Build') {
steps { steps {
sh 'chmod +x ./gradlew' echo 'Build..'
sh './gradlew build -x test'
} }
} }
stage('Test') { stage('Test') {
@ -37,4 +31,4 @@ pipeline {
} }
} }
} }
} }