Przeglądaj źródła

Test with drone sonarscanner

Axel Nordh 3 lat temu
rodzic
commit
a36c1fc199
1 zmienionych plików z 13 dodań i 0 usunięć
  1. 13 0
      .drone.yml

+ 13 - 0
.drone.yml

@@ -0,0 +1,13 @@
+kind: pipeline
+type: docker
+name: .net sonar
+
+steps:
+  - name: Sonar test
+  image: mcr.microsoft.com/dotnet/samples
+  commands:
+    - dotnet tool install --global dotnet-sonarscanner
+
+    - dotnet sonarscanner begin /k:"narKampen" /d:sonar.host.url="http://nordh.xyz:9088"  /d:sonar.login="60ee04e339236ab586302b761e38f7c9b1ea8d99"
+    - dotnet build
+    - dotnet sonarscanner end /d:sonar.login="60ee04e339236ab586302b761e38f7c9b1ea8d99"