sonarqube-scan

Execute SonarQube Scanner within Jenkins 2 Pipeline

送分小仙女□ 提交于 2019-11-29 04:55:15
I want to execute a "SonarQube Scanner" Step within my Jenkins 2.x Pipeline. When I try to create a sample groovy within the pipeline-syntax I only get a groovy script of the following format: step <object of type hudson.plugins.sonar.SonarRunnerBuilder> Does anyone know what is the correct Step Syntax? E.g. Publish JUnit Report looks like step([$class: 'JUnitResultArchiver', testResults: '']) I use the following Versions: Jenkins 2.11 SonarQube Scanner 2.6.1 SonarQube Plugin 2.4.1 I think I got it. First you have to retrieve your SonarQube Scanner Tool def sonarqubeScannerHome = tool name:

“IllegalStateException: No files nor directories matching” for non-existing JAR

筅森魡賤 提交于 2019-11-28 07:50:29
问题 I recently tried to upgrade my Gradle build to SonarQube plugin 2.2 and encountered the following error: Caused by: java.lang.IllegalStateException: No files nor directories matching '[/opt/bamboo-home/xml-data/build-dir/SPR-SONAR-JOB1/spring-core/build/libs/spring-cglib-repack-3.2.4.jar' in directory /opt/bamboo-home/xml-data/build-dir/SPR-SONAR-JOB1/spring-aop org.sonar.batch.scan.ProjectReactorBuilder.validateDirectories(ProjectReactorBuilder.java:302) org.sonar.batch.scan

sonar-maven-plugin:3.1.1:sonar analyze error after upgrade to SonarQube 6.0

烂漫一生 提交于 2019-11-28 00:56:21
问题 We just upgraded to SQ 6.0 and now some projects get the following error when analyzing with maven: [INFO] --- sonar-maven-plugin:3.1.1:sonar (default-cli) @ gitlab-hook-dispatcher --- [INFO] User cache: C:\Users\frank.jakop\.sonar\cache [INFO] Load global repositories [INFO] Load global repositories (done) | time=94ms [INFO] User cache: C:\Users\frank.jakop\.sonar\cache [INFO] Load plugins index [INFO] Load plugins index (done) | time=5ms [INFO] SonarQube version: 6.0 [INFO] Default locale:

What is the correct way to configure an Android project with submodules for use with the sonarqube gradle plugin?

折月煮酒 提交于 2019-11-27 16:13:58
What is the correct way to configure an Android project with submodules for use with the sonarqube gradle plugin? Google has not been my friend, but I may have missed something basic. (I search for sonarqube issues related to the android build directories and submodules. No useful results.) At a very high level, I am working with an Android project with the following structure. git_repository |----- android_project |--- app |--- SDK |- api The git_repository contains the README.md and other top level files including the android_project. The android_project contains the the app, as well as a