mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-02-18 11:41:12 +00:00
40 lines
No EOL
897 B
Groovy
40 lines
No EOL
897 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 """
|
|
|
|
${tool 'SonarScanner'}/bin/sonar-scanner \
|
|
-Dsonar.projectKey=spring-petclinic \
|
|
-Dsonar.projectName=spring-petclinic\
|
|
-Dsonar.sources=. \
|
|
-Dsonar.sourceEncoding=UTF-8
|
|
"""
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
} |