mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-24 00:05:48 +00:00
Update Jenkinsfile
This commit is contained in:
parent
1e0f525cc0
commit
0507e80833
1 changed files with 3 additions and 9 deletions
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
|
@ -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 {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue