From fef266288e7e5d610f16e7d11871a45863a3bd94 Mon Sep 17 00:00:00 2001 From: Evgeny Mandrikov Date: Wed, 17 Feb 2021 12:26:12 +0100 Subject: [PATCH] SonarCloud analysis requires execution of Maven with Java 11 --- .azure-pipelines/azure-pipelines.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.azure-pipelines/azure-pipelines.yml b/.azure-pipelines/azure-pipelines.yml index eb063e8da2..ef98550bc7 100644 --- a/.azure-pipelines/azure-pipelines.yml +++ b/.azure-pipelines/azure-pipelines.yml @@ -64,12 +64,17 @@ jobs: if [[ "$BUILD_SOURCEBRANCH" == "refs/heads/master" && "$JDK_VERSION" == "5" ]]; then mvn -V -B -e -f org.jacoco.build \ verify -Djdk.version=$JDK_VERSION \ - sonar:sonar deploy:deploy -DdeployAtEnd \ + deploy:deploy -DdeployAtEnd \ --toolchains=toolchains.xml --settings=.azure-pipelines/maven-settings.xml elif [[ "$JDK_VERSION" == "5" ]]; then mvn -V -B -e \ verify -Djdk.version=$JDK_VERSION \ --toolchains=toolchains.xml + elif [[ "$BUILD_SOURCEBRANCH" == "refs/heads/master" && "$JDK_VERSION" == "11" ]]; then + mvn -V -B -e -f org.jacoco.build \ + verify -Djdk.version=$JDK_VERSION -Dbytecode.version=$JDK_VERSION \ + sonar:sonar \ + --toolchains=toolchains.xml --settings=.azure-pipelines/maven-settings.xml else mvn -V -B -e \ verify -Djdk.version=$JDK_VERSION -Dbytecode.version=$JDK_VERSION -Decj=${ECJ:-} \