From af2361f1c4a2dd24c530023acd6ada12ba8a8d0e Mon Sep 17 00:00:00 2001
From: Neda Moeini <neda.moeini@geant.org>
Date: Thu, 26 Oct 2023 10:34:53 +0200
Subject: [PATCH] Added SonaQube to the pipeline.

---
 .gitlab-ci.yml   | 7 +++++++
 sonar.properties | 6 ++++++
 2 files changed, 13 insertions(+)
 create mode 100644 sonar.properties

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4aa7c8214..417a8f870 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -46,3 +46,10 @@ run-tox-pipeline:
   artifacts:
     paths:
       - htmlcov
+
+  sonarqube-analysis:
+    image: sonarsource/sonar-scanner-cli
+    script:
+      - sonar-scanner
+    only:
+      - develop
diff --git a/sonar.properties b/sonar.properties
new file mode 100644
index 000000000..4933ccded
--- /dev/null
+++ b/sonar.properties
@@ -0,0 +1,6 @@
+sonar.projectKey=gso
+sonar.projectName=GSO
+sonar.projectVersion=0.x
+sonar.sources=gso
+sonar.python.coverage.reportPaths=coverage.xml
+sonar.host.url=https://sonarqube.software.geant.org/
\ No newline at end of file
-- 
GitLab