mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-12-27 19:07:28 +00:00
add dockerfile change ./mvnw to mvn
This commit is contained in:
parent
33d9a7a64b
commit
d2a0c6711e
2 changed files with 15 additions and 3 deletions
13
Dockerfile.maven-java25
Normal file
13
Dockerfile.maven-java25
Normal 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
5
Jenkinsfile
vendored
|
|
@ -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}
|
||||
"""
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue