Skip to content

Commit

Permalink
SonarCloud analysis requires execution of Maven with Java 11
Browse files Browse the repository at this point in the history
  • Loading branch information
Godin committed Feb 17, 2021
1 parent 178d498 commit fef2662
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .azure-pipelines/azure-pipelines.yml
Expand Up @@ -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:-} \
Expand Down

0 comments on commit fef2662

Please sign in to comment.