add dockerfile change ./mvnw to mvn

This commit is contained in:
Yuxin Deng 2025-11-23 15:57:31 -05:00
parent 33d9a7a64b
commit d2a0c6711e
2 changed files with 15 additions and 3 deletions

13
Dockerfile.maven-java25 Normal file
View file

@ -0,0 +1,13 @@
FROM eclipse-temurin:25-jdk
# Install basic tools
RUN apt-get update && \
apt-get install -y git && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
WORKDIR /workspace
# Maven will be provided by the project's mvnw wrapper
CMD ["bash"]

5
Jenkinsfile vendored
View file

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