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

swissgrc/docker-azure-pipelines-sonarscannermsbuild-8

Repository files navigation

Docker image for running Sonar Scanner for .NET 8 in an Azure Pipelines container job

License Build Quality Gate Status Pulls Stars

Docker image to run Sonar Scanner for .NET 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-sonarscannermsbuild:8-unstable
        inputs:
          SonarCloud: 'SonarCloud'
          organization: 'myOrganization'
          scannerMode: 'MSBuild'
          projectKey: 'my-project'
          projectName: 'MyProject'
      - bash: |
          dotnet build
        displayName: "Build"
        target: swissgrc/azure-pipelines-sonarscannermsbuild:8-unstable
      - task: SonarCloudAnalyze@1
        displayName: 'Run SonarCloud analysis'
        target: swissgrc/azure-pipelines-sonarscannermsbuild:8-unstable

Tags

Tag Description Base Image .NET SDK NodeJS Git Git LFS Size
8-unstable Latest unstable release (from develop branch) swissgrc/azure-pipelines-openjdk:17.0.13.0 8.0.405 22.13.1 2.39.5-0+deb12u1 3.6.1 Docker Image Size (tag)