Skip to content

swissgrc/docker-azure-pipelines-sonarscannercli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker image for running Sonar Scanner CLI in an Azure Pipelines container job

License Build Quality Gate Status Pulls Stars

Docker image to run Sonar Scanner CLI in Azure Pipelines container jobs.

Usage

This image can be used to run Sonar Scanner CLI in Azure Pipelines container jobs.

Azure Pipelines Container Job

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: '.'

Tags

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 Docker Image Size (tag)