From 7e24172efee07d2e1e1a8b614460011b01d17213 Mon Sep 17 00:00:00 2001 From: Tony Fages Date: Tue, 2 Apr 2024 12:34:05 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 8173181..30f3fb2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,4 +6,17 @@ image: hub.codefirst.iut.uca.fr/camille.petitalot/drone-sonarplugin-reactnative:latest commands: - cd JokesApp - - npm install \ No newline at end of file + - npm install + + step : + - name : sonar + image : hub.codefirst.iut.uca.fr/camille.petitalot/drone-sonarplugin-reactnative:latest + environment: + sonar_host: https://codefirst.iut.uca.fr/sonar/ + sonar_token: + from_secret: SECRET_SONAR_LOGIN + project_key: JokesApp + commands: + - cd JokesApp + - npm install + - sonar-scanner -Dsonar-projectkey=$${project_key} -Dsonar.sources=. -Dsonar.host.url=$${sonar_host} -Dsonar. login=$${sonar_token} \ No newline at end of file