From bc4e7a13e246078e25dafe0531a138485a2c0ebd Mon Sep 17 00:00:00 2001 From: Yuxin Deng Date: Wed, 12 Nov 2025 02:03:22 -0500 Subject: [PATCH] change time out and change login to token for sonarqube --- Jenkinsfile | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index fdf1d6676..deb7f4d83 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 {