mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-01-10 03:51:11 +00:00
change time out and change login to token for sonarqube
This commit is contained in:
parent
2d281dc3c6
commit
bc4e7a13e2
1 changed files with 11 additions and 5 deletions
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
|
|
@ -59,21 +59,27 @@ pipeline {
|
|||
withSonarQubeEnv('SonarQubeServer') {
|
||||
sh """
|
||||
./mvnw clean verify sonar:sonar \
|
||||
-Dsonar.projectKey=${env.SONAR_PROJECT_KEY} \
|
||||
-Dsonar.projectName=${env.PROJECT_NAME} \
|
||||
-Dsonar.projectVersion=${env.BUILD_NUMBER}
|
||||
-Dsonar.projectKey=${env.SONAR_PROJECT_KEY} \
|
||||
-Dsonar.projectName='${env.PROJECT_NAME}' \
|
||||
-Dsonar.projectVersion=${env.BUILD_NUMBER}\
|
||||
-DskipTests \
|
||||
-Dspring.docker.compose.skip.in-tests=true \
|
||||
-Dspring.profiles.active=default \
|
||||
-Dsonar.host.url=${SONAR_HOST_URL} \
|
||||
-Dsonar.token=${SONAR_AUTH_TOKEN} \
|
||||
"""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
stage('Quality Gate') {
|
||||
steps {
|
||||
timeout(time: 15, unit: 'MINUTES') {
|
||||
timeout(time: 10, unit: 'MINUTES') {
|
||||
waitForQualityGate abortPipeline: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
stage('Code Quality') {
|
||||
steps {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue