Added .drone.yml file
This commit is contained in:
21
.drone.yml
Normal file
21
.drone.yml
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
kind: pipeline
|
||||||
|
name: sonarcube
|
||||||
|
type: docker
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: code-analysis
|
||||||
|
pull: if-not-exists
|
||||||
|
image: sonarsource/sonar-scanner-cli
|
||||||
|
commands:
|
||||||
|
- sonar-scanner -Dsonar.host.url=$SONAR_HOST -Dsonar.login=$SONAR_TOKEN -Dsonar.projectKey=$SONAR_PROJECT_KEY -Dsonar.qualitygate.wait=true
|
||||||
|
environment:
|
||||||
|
SONAR_HOST:
|
||||||
|
from_secret: sonar_host
|
||||||
|
SONAR_TOKEN:
|
||||||
|
from_secret: sonar_token
|
||||||
|
SONAR_PROJECT_KEY:
|
||||||
|
from_secret: sonar_project_key
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
Reference in New Issue
Block a user