fix: use absolute path for sonar-scanner

This commit is contained in:
olekhondera
2026-03-28 13:46:40 +02:00
parent e2246c46cf
commit a9e5cfbdaf
4 changed files with 202 additions and 2 deletions

View File

@@ -64,8 +64,8 @@ steps:
SONAR_TOKEN:
from_secret: sonar_token
commands:
- export PATH="/opt/sonar-scanner-6.2.1.4610-linux-x64/bin:$PATH"
- sonar-scanner -Dsonar.token=$SONAR_TOKEN
- # sonar-scanner path set below
- /opt/sonar-scanner-6.2.1.4610-linux-x64/bin/sonar-scanner -Dsonar.token=$SONAR_TOKEN
depends_on: [lint, test]
# Uncomment when deploy script is set up on VPS: