Run Sonar on the master branch
continuous-integration/drone/push Build is passing Details

error-extensions-editor
Clément FRÉVILLE 1 year ago
parent af989fc165
commit 6f8d1a3cc8

@ -1,4 +1,6 @@
kind: pipeline
type: docker
name: default
steps:
- name: build
@ -6,3 +8,19 @@ steps:
commands:
- npm install
- npm run build
- name: sonar
image: sonarsource/sonar-scanner-cli:5
commands:
- sonar-scanner -Dsonar.projectKey="$PROJECT_KEY" -Dsonar.login="$SONAR_TOKEN" -Dsonar.host.url=https://codefirst.iut.uca.fr/sonar
environment:
PROJECT_KEY:
from_secret: SONAR_PROJECT_KEY
SONAR_TOKEN:
from_secret: SONAR_TOKEN
depends_on:
- build
when:
branch:
- master
- ci/*

Loading…
Cancel
Save