Docker image to run Sonar Scanner CLI in Azure Pipelines container jobs.
This image can be used to run Sonar Scanner CLI in Azure Pipelines container jobs.
To use the image in an Azure Pipelines Container Job, add one of the following example tasks and use it with the container
property.
The following example shows the container used for a deployment step which shows .NET version:
- stage: Build
jobs:
- job: Build
steps:
- task: SonarCloudPrepare@1
displayName: 'Prepare analysis configuration'
target: swissgrc/azure-pipelines-sonarscannercli:latest
inputs:
SonarCloud: 'SonarCloud'
organization: 'myOrganization'
scannerMode: 'CLI'
configMode: 'manual'
cliProjectKey: 'my-project'
cliProjectName: 'MyProject'
cliSources: '.'
Tag | Description | Base Image | Node.js | Size |
---|---|---|---|---|
unstable | Latest unstable release (from develop branch) |
swissgrc/azure-pipelines-openjdk:17.0.12.0 | 22.11.0 |