mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 23:35:50 +00:00
test
This commit is contained in:
parent
54a434f236
commit
bafcb74e90
1 changed files with 10 additions and 20 deletions
|
@ -1,21 +1,11 @@
|
||||||
pipeline {
|
node {
|
||||||
agent any
|
stage('SCM') {
|
||||||
stages {
|
checkout scm
|
||||||
stage('SonarQube analysis') {
|
|
||||||
steps {
|
|
||||||
script {
|
|
||||||
withSonarQubeEnv("sq1"){
|
|
||||||
def mvnHome = tool "M3"
|
|
||||||
sh """
|
|
||||||
${mvnHome}/bin/mvn sonar:sonar
|
|
||||||
-Dsonar.projectKey=Web
|
|
||||||
-Dsonar.host.url=http://localhost:9000/
|
|
||||||
-Dsonar.login=squ_ea9632ad9d734f30372ed61b6565f2fa028e8e5e
|
|
||||||
|
|
||||||
"""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
stage('SonarQube Analysis') {
|
||||||
|
def mvn = tool 'M3';
|
||||||
|
withSonarQubeEnv("sq1") {
|
||||||
|
sh "${mvn}/bin/mvn clean verify sonar:sonar -Dsonar.projectKey=Web -Dsonar.projectName='Web'"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue