Variaables.
This commit is contained in:
parent
da23d9cda0
commit
1b8f85606f
13
.drone.yml
13
.drone.yml
@ -1,18 +1,19 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
|
||||
environment:
|
||||
SONAR_HOST_URL:
|
||||
from_secret: sonarScannerHostUrl
|
||||
SONAR_LOGIN:
|
||||
from_secret: sonarScannerLogin
|
||||
|
||||
steps:
|
||||
- name: code-analysis
|
||||
image: sonarsource/sonar-scanner-cli
|
||||
detach: true
|
||||
failure: ignore
|
||||
commands:
|
||||
- ls -la
|
||||
- sonar-scanner -Dsonar.projectKey=LDC-WWW -Dsonar.sources=. -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.login=$SONAR_LOGIN
|
||||
environment:
|
||||
SONAR_HOST_URL:
|
||||
from_secret: sonarScannerHostUrl
|
||||
SONAR_LOGIN:
|
||||
from_secret: sonarScannerLogin
|
||||
|
||||
|
||||
- name: build
|
||||
|
Loading…
Reference in New Issue
Block a user