This commit is contained in:
parent
0e16025d56
commit
b28915a3a6
@ -35,9 +35,8 @@ steps:
|
|||||||
- name: code-analysis
|
- name: code-analysis
|
||||||
image: node:20-alpine
|
image: node:20-alpine
|
||||||
commands:
|
commands:
|
||||||
# Install sonar-scanner globally
|
|
||||||
- npm install -g sonar-scanner
|
- npm install -g sonar-scanner
|
||||||
# Run sonar-scanner with your parameters
|
- chmod +x /usr/local/lib/node_modules/sonar-scanner/bin/sonar-scanner
|
||||||
- sonar-scanner -Dsonar.projectKey=$SONAR_PROJECT_KEY -Dsonar.sources=. -Dsonar.host.url=$SONAR_INSTANCE_URL -Dsonar.login=$SONAR_LOGIN_KEY
|
- sonar-scanner -Dsonar.projectKey=$SONAR_PROJECT_KEY -Dsonar.sources=. -Dsonar.host.url=$SONAR_INSTANCE_URL -Dsonar.login=$SONAR_LOGIN_KEY
|
||||||
environment:
|
environment:
|
||||||
SONAR_PROJECT_KEY:
|
SONAR_PROJECT_KEY:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user