Hi guys, this is my first post here then sorry if I dont post in correctly form but I will try.
So, I’m trying to create a CI pipeline in Azure DevOps to Android and when I use sonarqube into gradle task and I run this task, I’m getting the below error intermittently:
What went wrong:
Execution failed for task ‘:features:sonarqube’.
Fail to open plugin [securitypythonfrontend]: /home/vsts/.sonar/cache/262a3c6375ab0f28ad05aece3014d774/sonar-securitypythonfrontend-plugin.jar
This error shows a python plugin error but my project uses kotlin language, I was received other errors like go and cobol plugins.
This is my gradle task:
-
task: SonarCloudPrepare@1
inputs:
SonarCloud: ‘{I removed this value}’
organization: ‘{I removed this value}’
scannerMode: ‘Other’ -
task: Gradle@2
inputs:
gradleWrapperFile: ‘gradlew’
tasks: ‘assembleDebug testDebugUnitTestCoverage’
publishJUnitResults: true
javaHomeOption: ‘JDKVersion’
sonarQubeRunAnalysis: true
sqGradlePluginVersionChoice: ‘build’ -
task: SonarCloudPublish@1
inputs:
pollingTimeoutSec: ‘300’
This is my sonarqube task in gradle file:
sonarqube {
properties {
property “sonar.sourceEncoding”, “UTF-8”
property “sonar.host.url”, “https://sonarcloud.io”
property “sonar.login”, “{I removed this value}”
property “sonar.password”, “{I removed this value}”
property “sonar.projectName”, “{I removed this value}”
property “sonar.projectKey”, “${config.applicationId}”
property “sonar.projectVersion”, “${config.versionName}”
property “sonar.java.coveragePlugin”, “jacoco”
property “sonar.coverage.exclusions”, “/test/,/androidTest/,/R.class,/BuildConfig.,**/Manifest.,**/Test.,/com/example/databinding/*,/com/example/generated/callback/,**/Dto.,/android/databinding/*,/androidx/databinding/,**/di/module/,/MapperImpl.*,/BuildConfig.,**/Component.,/BR.*,/Manifest*.,**/Companion.,/Module.,/Dagger.,**/MembersInjector.,/Extensions.*,/InputMethodManagerLeaks.,**/_Factory*.,**/_ProvideFactory.*”
property “sonar.coverage.jacoco.xmlReportPaths”, “$projectDir.path/build/reports/jacoco/test${config.buildVariant.capitalize()}UnitTestCoverage/test${config.buildVariant.capitalize()}UnitTestCoverage.xml”
}
}
Can you help me to discover if this is a problem with sonarqube plugin or azure devops when I integrate with sonarcloud?