This is an automated email from the ASF dual-hosted git repository.
kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-tooling-jenkins.git
The following commit(s) were added to refs/heads/master by this push:
new 77cc9bc SLING-12006 Run Sonar analysis with Java 17 (#18)
77cc9bc is described below
commit 77cc9bce6d10c2f40323721f37b098990f666b90
Author: Konrad Windszus <[email protected]>
AuthorDate: Fri Aug 18 11:21:21 2023 +0200
SLING-12006 Run Sonar analysis with Java 17 (#18)
https://docs.sonarcloud.io/appendices/scanner-environment/
---
vars/slingOsgiBundleBuild.groovy | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/vars/slingOsgiBundleBuild.groovy b/vars/slingOsgiBundleBuild.groovy
index a196152..16bc9c5 100644
--- a/vars/slingOsgiBundleBuild.groovy
+++ b/vars/slingOsgiBundleBuild.groovy
@@ -264,9 +264,9 @@ def analyseWithSonarCloud(def globalConfig, def jobConfig) {
static final String SONAR_PLUGIN_GAV =
'org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184'
// Alls params are set, let's execute using #withCrendentials to hide and
mask Robert's token
withCredentials([string(credentialsId: 'sonarcloud-token-rombert',
variable: 'SONAR_TOKEN')]) {
- // always build with Java 11 (that is the minimum version supported:
https://sonarcloud.io/documentation/appendices/end-of-support/)
+ // always build with Java 17 (that is the minimum version supported:
https://docs.sonarcloud.io/appendices/scanner-environment/)
withMaven(maven: globalConfig.mvnVersion,
- jdk: jenkinsJdkLabel(11, globalConfig),
+ jdk: jenkinsJdkLabel(17, globalConfig),
publisherStrategy: 'EXPLICIT') {
try {
String mvnCommand = "mvn -B -e ${SONAR_PLUGIN_GAV}:sonar
${sonarcloudParams}"