spring-petclinic/Jenkinsfile

27 lines
335 B
Text
Raw Normal View History

2025-02-04 10:20:36 +00:00
pipeline {
agent any
tools {
maven 'm3'
}
stages {
stage ('Build') {
steps {
2025-02-04 10:26:12 +00:00
sh './mvnw -B -DskipTests clean package'
2025-02-04 10:20:36 +00:00
}
}
stage ('Test') {
steps {
2025-02-04 10:26:12 +00:00
sh './mvnw test'
2025-02-04 10:20:36 +00:00
}
}
stage ('Deploy') {
steps {
sh 'java -jar ./target/*.jar'
}
}
2025-02-04 10:27:40 +00:00
}
2025-02-04 10:20:36 +00:00
}