Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/swissgrc/docker-azure-pipelines-sonarscannercli
🐳 Docker image for running Sonar Scanner CLI in an Azure Pipelines container job
https://github.com/swissgrc/docker-azure-pipelines-sonarscannercli
azure-devops azure-pipelines hacktoberfest sonar-scanner sonar-scanner-cli sonarcloud sonarqube
Last synced: about 2 months ago
JSON representation
🐳 Docker image for running Sonar Scanner CLI in an Azure Pipelines container job
- Host: GitHub
- URL: https://github.com/swissgrc/docker-azure-pipelines-sonarscannercli
- Owner: swissgrc
- License: mit
- Created: 2022-08-11T12:49:41.000Z (over 2 years ago)
- Default Branch: develop
- Last Pushed: 2024-11-10T08:32:50.000Z (about 2 months ago)
- Last Synced: 2024-11-10T09:26:44.914Z (about 2 months ago)
- Topics: azure-devops, azure-pipelines, hacktoberfest, sonar-scanner, sonar-scanner-cli, sonarcloud, sonarqube
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/swissgrc/azure-pipelines-sonarscannercli
- Size: 94.7 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Docker image for running Sonar Scanner CLI in an Azure Pipelines container job
[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/swissgrc/docker-azure-pipelines-sonarscannercli/blob/main/LICENSE) [![Build](https://img.shields.io/github/actions/workflow/status/swissgrc/docker-azure-pipelines-sonarscannercli/publish.yml?branch=develop&style=flat-square)](https://github.com/swissgrc/docker-azure-pipelines-sonarscannercli/actions/workflows/publish.yml) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=swissgrc_docker-azure-pipelines-sonarscannercli&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=swissgrc_docker-azure-pipelines-sonarscannercli) [![Pulls](https://img.shields.io/docker/pulls/swissgrc/azure-pipelines-sonarscannercli.svg?style=flat-square)](https://hub.docker.com/r/swissgrc/azure-pipelines-sonarscannercli) [![Stars](https://img.shields.io/docker/stars/swissgrc/azure-pipelines-sonarscannercli.svg?style=flat-square)](https://hub.docker.com/r/swissgrc/azure-pipelines-sonarscannercli)
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:
```yaml
- 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 | Size |
|------------|-----------------------------------------------------------------------------------------------|--------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------|
| unstable | Latest unstable release (from `develop` branch) | swissgrc/azure-pipelines-openjdk:17.0.12.0 | ![Docker Image Size (tag)](https://img.shields.io/docker/image-size/swissgrc/azure-pipelines-sonarscannercli/unstable?style=flat-square) |### Configuration
These environment variables are supported:
| Environment variable | Default value | Description |
|------------------------|----------------------------|------------------------------------------------------------------|
| NODE_VERSION | `20.18.0-1nodesource1` | Version of Node.js installed in the image. |[Sonar Scanner CLI]: https://docs.sonarqube.org/latest/analysis/scan/sonarscanner/
[Azure Pipelines container jobs]: https://docs.microsoft.com/en-us/azure/devops/pipelines/process/container-phases