Sign inSign up

yahuiwong/drone-sonar-dotnet-plugin

By yahuiwong

•Updated over 4 years ago

Image
0

2.2K

yahuiwong/drone-sonar-dotnet-plugin repository overview

⁠drone-sonar-dotnet-plugin

The plugin of Drone CI to integrate with SonarQube (previously called Sonar), which is an open source code quality management platform.

Detail tutorials: DOCS.md⁠.

⁠Build process

build go binary file: GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o drone-sonar

build docker image docker build -t yahuiwong/drone-sonar-dotnet-plugin .

⁠Testing the docker image:
docker run --rm \
  -e DRONE_REPO=test \
  -e PLUGIN_SOURCES=. \
  -e PLUGIN_SONAR_HOST=http://sonar.domain.com \
  -e PLUGIN_SONAR_TOKEN=fa4353111bs53dc531260e9cgd1692d0329cf059 \
  yahuiwong/drone-sonar-dotnet-plugin
⁠Pipeline example
steps
- name: code-analysis
  image: yahuiwong/drone-sonar-dotnet-plugin
  settings:
      sonar_host:
        from_secret: sonar_host
      sonar_token:
        from_secret: sonar_token

Tag summary

Content type

Image

Digest

Size

306.8 MB

Last updated

almost 5 years ago

docker pull yahuiwong/drone-sonar-dotnet-plugin