Sonar scanner.
This commit is contained in:
parent
c20329d2b3
commit
da23d9cda0
19
.drone.yml
19
.drone.yml
@ -1,14 +1,19 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
|
||||
environment:
|
||||
SONAR_HOST_URL:
|
||||
from_secret: sonarScannerHostUrl
|
||||
SONAR_LOGIN:
|
||||
from_secret: sonarScannerLogin
|
||||
|
||||
steps:
|
||||
# - name: code-analysis
|
||||
# image: aosapps/drone-sonar-plugin
|
||||
# settings:
|
||||
# sonar_host:
|
||||
# from_secret: sonar_host
|
||||
# sonar_token:
|
||||
# from_secret: sonar_token
|
||||
- name: code-analysis
|
||||
image: sonarsource/sonar-scanner-cli
|
||||
commands:
|
||||
- ls -la
|
||||
- sonar-scanner -Dsonar.projectKey=LDC-WWW -Dsonar.sources=. -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.login=$SONAR_LOGIN
|
||||
|
||||
|
||||
- name: build
|
||||
image: node:14
|
||||
|
Loading…
Reference in New Issue
Block a user