Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Latest commit

 

History

History
44 lines (33 loc) · 3.01 KB

File metadata and controls

44 lines (33 loc) · 3.01 KB

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