]> source.dussan.org Git - poi.git/commitdiff
migrate to sonarcloud.io
authorAndreas Beeker <kiwiwings@apache.org>
Tue, 12 Nov 2019 23:04:02 +0000 (23:04 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Tue, 12 Nov 2019 23:04:02 +0000 (23:04 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1869713 13f79535-47bb-0310-9956-ffa450edef68

jenkins/create_jobs.groovy

index b130deb5aa953bfd6721be6ef95a8dfe11fad523..a4ac2d0647cb8b835dc556f5df26dc88f0a74ef6 100644 (file)
@@ -297,20 +297,20 @@ poijobs.each { poijob ->
                     # Maven-Download fails for strange reasons, try to workaround...
                     mkdir -p sonar/ooxml-schema-security/target/schemas && wget -O sonar/ooxml-schema-security/target/schemas/xmldsig-core-schema.xsd http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd
                 */
-                maven {
-                    if(poijob.sonar) {
-                        withCredentials([string(credentialsId: 'sonarcloud-poi', variable: 'SONAR_TOKEN')]) {
+                withCredentials([string(credentialsId: 'sonarcloud-poi', variable: 'SONAR_TOKEN')]) {
+                    maven {
+                        if (poijob.sonar) {
                             goals('compile sonar:sonar -Dsonar.login=${SONAR_TOKEN} ' + sonarOptions)
+                        } else {
+                            goals('package')
                         }
-                    } else {
-                        goals('package')
+                        rootPOM('sonar/pom.xml')
+                        mavenOpts('-Xmx2g')
+                        mavenOpts('-Xms256m')
+                        mavenOpts('-XX:-OmitStackTraceInFastThrow')
+                        localRepository(LocalRepositoryLocation.LOCAL_TO_WORKSPACE)
+                        mavenInstallation(defaultMaven)
                     }
-                    rootPOM('sonar/pom.xml')
-                    mavenOpts('-Xmx2g')
-                    mavenOpts('-Xms256m')
-                    mavenOpts('-XX:-OmitStackTraceInFastThrow')
-                    localRepository(LocalRepositoryLocation.LOCAL_TO_WORKSPACE)
-                    mavenInstallation(defaultMaven)
                 }
             }
             publishers {