fix: add debug output for SonarQube URL
This commit is contained in:
parent
89d8b108cd
commit
64b7d0786c
1 changed files with 17 additions and 16 deletions
|
|
@ -76,22 +76,23 @@ jobs:
|
|||
ls -la
|
||||
echo "Sample files:"
|
||||
find . -maxdepth 2 -type f | head -n 20
|
||||
echo "Running local sonar-scanner..."
|
||||
sonar-scanner \
|
||||
-Dsonar.host.url="$HOST_URL" \
|
||||
-Dsonar.token="$SONAR_TOKEN" \
|
||||
-Dsonar.projectKey="$PROJECT_KEY" \
|
||||
-Dsonar.sources=. \
|
||||
-Dsonar.scm.disabled=true \
|
||||
-Dsonar.projectBaseDir="$WORKDIR" \
|
||||
-Dsonar.branch.name="$BRANCH_NAME" 2>/dev/null || \
|
||||
sonar-scanner \
|
||||
-Dsonar.host.url="$HOST_URL" \
|
||||
-Dsonar.token="$SONAR_TOKEN" \
|
||||
-Dsonar.projectKey="$PROJECT_KEY" \
|
||||
-Dsonar.sources=. \
|
||||
-Dsonar.scm.disabled=true \
|
||||
-Dsonar.projectBaseDir="$WORKDIR"
|
||||
echo "Running local sonar-scanner..."
|
||||
echo "SonarQube URL: $HOST_URL"
|
||||
sonar-scanner \
|
||||
-Dsonar.host.url="$HOST_URL" \
|
||||
-Dsonar.token="$SONAR_TOKEN" \
|
||||
-Dsonar.projectKey="$PROJECT_KEY" \
|
||||
-Dsonar.sources=. \
|
||||
-Dsonar.scm.disabled=true \
|
||||
-Dsonar.projectBaseDir="$WORKDIR" \
|
||||
-Dsonar.branch.name="$BRANCH_NAME" 2>/dev/null || \
|
||||
sonar-scanner \
|
||||
-Dsonar.host.url="$HOST_URL" \
|
||||
-Dsonar.token="$SONAR_TOKEN" \
|
||||
-Dsonar.projectKey="$PROJECT_KEY" \
|
||||
-Dsonar.sources=. \
|
||||
-Dsonar.scm.disabled=true \
|
||||
-Dsonar.projectBaseDir="$WORKDIR"
|
||||
|
||||
docker:
|
||||
needs: [lint, sonar]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue