mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-12-27 19:07:28 +00:00
c bon
This commit is contained in:
parent
c6a00ffa6d
commit
b3ad8283c0
1 changed files with 8 additions and 7 deletions
15
JenkinsFile
15
JenkinsFile
|
|
@ -48,13 +48,14 @@ pipeline {
|
|||
stage('SonarQube Analysis') {
|
||||
steps {
|
||||
dir('.') { // <-- use root directory
|
||||
sh """
|
||||
./mvnw sonar:sonar \
|
||||
-Dsonar.projectKey=RhitaKhadijaAssia_spring-petclinic \
|
||||
-Dsonar.organization=rhitakhadijaassia \
|
||||
-Dsonar.host.url=${SONAR_HOST} \
|
||||
-Dsonar.login=${SONAR_TOKEN}
|
||||
"""
|
||||
withCredentials([string(credentialsId: '01', variable: 'SONAR_TOKEN')]) {
|
||||
sh """./mvnw sonar:sonar \
|
||||
-Dsonar.projectKey=RhitaKhadijaAssia_spring-petclinic \
|
||||
-Dsonar.organization=rhitakhadijaassia \
|
||||
-Dsonar.host.url=${SONAR_HOST} \
|
||||
-Dsonar.login=${SONAR_TOKEN}"""
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue