add .env to gitignore, modify sonarqube setting

This commit is contained in:
Yuxin Deng 2025-11-23 16:08:52 -05:00
parent d2a0c6711e
commit 9eaa06cec4
2 changed files with 5 additions and 1 deletions

3
.gitignore vendored
View file

@ -46,3 +46,6 @@ out/
_site/
*.css
!petclinic.css
.env
.env.local

3
Jenkinsfile vendored
View file

@ -89,10 +89,11 @@ pipeline {
echo 'Running SonarQube analysis...'
withSonarQubeEnv('SonarQubeServer') {
sh """
mvn clean verify sonar:sonar \
./mvnw clean verify sonar:sonar \
-DskipTests \
-Dsonar.projectKey=${SONAR_PROJECT_KEY} \
-Dsonar.projectName=${PROJECT_NAME} \
-Dsonar.projectVersion=${BUILD_NUMBER} \
-Dsonar.host.url=${SONAR_HOST_URL} \
-Dsonar.token=${SONAR_AUTH_TOKEN}
"""