mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-12-27 19:07:28 +00:00
44 lines
797 B
Groovy
44 lines
797 B
Groovy
pipeline {
|
|
agent any
|
|
stages {
|
|
stage("BuildCode"){
|
|
steps {
|
|
sh """
|
|
|
|
./mvnw package
|
|
|
|
"""
|
|
}
|
|
}
|
|
|
|
stage("RunTests"){
|
|
steps {
|
|
sh """
|
|
|
|
./mvnw test
|
|
|
|
"""
|
|
}
|
|
}
|
|
|
|
stage("Sonar-Scanning") {
|
|
steps {
|
|
withSonarQubeEnv('sonarqube') {
|
|
sh """
|
|
|
|
./mvnw clean verify sonar:sonar \
|
|
-Dsonar.projectKey=spring-petclinic \
|
|
-Dsonar.projectName=spring-petclinic
|
|
|
|
"""
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|