add webhook

This commit is contained in:
Yuxin Deng 2025-11-11 23:22:10 -05:00
parent 2d281dc3c6
commit 7405761968

18
Jenkinsfile vendored
View file

@ -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.host.url=http://sonarqube:9000 \
-Dsonar.login=${SONAR_AUTH_TOKEN} \
-Dsonar.projectVersion=${env.BUILD_NUMBER}
"""
}
}
}
stage('Quality Gate') {
steps {
timeout(time: 15, unit: 'MINUTES') {
waitForQualityGate abortPipeline: true
script {
timeout(time: 10, unit: 'MINUTES') {
def qg = waitForQualityGate abortPipeline: true
echo "Quality gate status: ${qg.status}"
}
}
}
}
stage('Code Quality') {
steps {