- ALM used (Azure DevOps)
- CI system used (Azure DevOps)
- Scanner command used when applicable
In azure-pipeline.yml the following two input parameters were used in Gradle@2 build task:
sonarQubeRunAnalysis: true
sqGradlePluginVersionChoice: 'build'
Also there is following task present in Gradle build file before the build step:
- task: SonarCloudPrepare@1
inputs:
SonarCloud: '******'
organization: '******'
scannerMode: 'Other'
extraProperties: |
# Additional properties that will be passed to the scanner,
# Put one key=value per line, example:
# sonar.exclusions=**/*.bin
sonar.projectKey=******
sonar.projectName=******
And following task after the build step:
- task: SonarCloudPublish@1
inputs:
pollingTimeoutSec: '300'
env:
SONAR_TOKEN: $(sonarToken)
And Gradle.properties were updated with:
systemProp.sonar.host.url=https://sonarcloud.io
- Languages of the repository: Kotlin, Gradle, Groovy
- Error observed
##[warning]No analyses found in this build! Please check your build configuration.
Finishing: SonarCloudPublish