Skip to content

Commit c81b581

Browse files
committed
SonarCloud doesn't support anymore Java 11. The temporary workaround is
now deprecated and doesn't work anymore. So, we define a Java version dedicated to run the sonar analysis. This is done by: * define a new arg: SONAR_JAVA_VERSION * set a new env var: SONAR_JDK_VERSION. Latter can be used to run a sonar analysis within a Jenkins file pipeline stage.
1 parent bc02897 commit c81b581

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ ENV TZ=Europe/Paris
1616
# Parameters whose values are required for the tests to succeed
1717
ARG WILDFLY_VERSION=26.1.3
1818
ARG JAVA_VERSION=11
19+
ARG SONAR_JAVA_VERSION=17
1920
ARG DEFAULT_LOCALE=fr_FR.UTF-8
2021
ARG MAVEN_VERSION=3.8.8
2122
ARG MAVEN_SHA=332088670d14fa9ff346e6858ca0acca304666596fec86eea89253bd496d3c90deae2be5091be199f48e09d46cec817c6419d5161fb4ee37871503f472765d00
@@ -47,6 +48,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
4748
zip \
4849
unzip \
4950
openjdk-${JAVA_VERSION}-jdk \
51+
openjdk-${SONAR_JAVA_VERSION}-jdk \
5052
ffmpeg \
5153
imagemagick \
5254
ghostscript \

0 commit comments

Comments
 (0)