mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 20:25:50 +00:00
Adding jenkinsfile
This commit is contained in:
parent
182576ff00
commit
4c45124fd3
1 changed files with 25 additions and 0 deletions
25
Jenkinsfile
vendored
Normal file
25
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
pipeline {
|
||||
agent any
|
||||
tools {
|
||||
maven 'm3'
|
||||
}
|
||||
stages {
|
||||
stage ('Build') {
|
||||
steps {
|
||||
sh './mvnw -B -DskipTests clean package
|
||||
}
|
||||
}
|
||||
|
||||
stage ('Test') {
|
||||
steps {
|
||||
sh './mvnw test
|
||||
}
|
||||
}
|
||||
|
||||
stage ('Deploy') {
|
||||
steps {
|
||||
sh 'java -jar ./target/*.jar'
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue