We are trying to integrate sonar-cloud in our android project which uses java and kotlin language.
After triggering the pipeline, we are facing this error message during code analysis. Was trying to fix it in different ways but was not able to find a solution. Is there any other way to integrate into android or has anyone done that before?
Thanks
Screenshot
Here is the pipeline details.
- task: SonarCloudPrepare@1
displayName: Prepare analysis on SonarCloud
continueOnError: True
inputs:
SonarCloud: ********
organization: *******
scannerMode: Other
extraProperties: "# Additional properties that will be passed to the scanner, \n# Put one key=value per line, example:\n# sonar.exclusions=**/*.bin\n\nsonar.sources=app/src/main/javag\nsonar.inclusions = app/src/main/java/\nsonar.exclusions=app/src/androidTest/java/\nsonar.scm.disabled=true\nsonar.test.exclusions=app/src/androidTest/java/\nsonar.debug = true\n"
- task: Gradle@2
displayName: gradlew assembleDebug
continueOnError: True
inputs:
wrapperScript: $(BuildParameters.wrapperScript)
tasks: assembleDebug
testResultsFiles: '**/build/test-results/TEST-*.xml'
sqAnalysisEnabled: true
sqGradlePluginVersion: 3.4.0.2513
- task: AndroidSigning@3
displayName: Signing and aligning APK file(s) **/*.apk
inputs:
apksign: false
zipalign: false
- task: SonarCloudAnalyze@1
displayName: Run Code Analysis
enabled: False
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'
condition: succeededOrFailed()
inputs:
PathtoPublish: $(build.artifactstagingdirectory)
- task: SonarCloudPublish@1
displayName: Publish Quality Gate Result
…