fix: add debug output for SonarQube URL
Some checks failed
build-and-push / lint (push) Successful in 7s
build-and-push / sonar (push) Successful in 21s
build-and-push / docker (push) Failing after 9s

This commit is contained in:
nocci 2026-03-07 13:33:17 +00:00
parent 89d8b108cd
commit 64b7d0786c

View file

@ -76,22 +76,23 @@ jobs:
ls -la ls -la
echo "Sample files:" echo "Sample files:"
find . -maxdepth 2 -type f | head -n 20 find . -maxdepth 2 -type f | head -n 20
echo "Running local sonar-scanner..." echo "Running local sonar-scanner..."
sonar-scanner \ echo "SonarQube URL: $HOST_URL"
-Dsonar.host.url="$HOST_URL" \ sonar-scanner \
-Dsonar.token="$SONAR_TOKEN" \ -Dsonar.host.url="$HOST_URL" \
-Dsonar.projectKey="$PROJECT_KEY" \ -Dsonar.token="$SONAR_TOKEN" \
-Dsonar.sources=. \ -Dsonar.projectKey="$PROJECT_KEY" \
-Dsonar.scm.disabled=true \ -Dsonar.sources=. \
-Dsonar.projectBaseDir="$WORKDIR" \ -Dsonar.scm.disabled=true \
-Dsonar.branch.name="$BRANCH_NAME" 2>/dev/null || \ -Dsonar.projectBaseDir="$WORKDIR" \
sonar-scanner \ -Dsonar.branch.name="$BRANCH_NAME" 2>/dev/null || \
-Dsonar.host.url="$HOST_URL" \ sonar-scanner \
-Dsonar.token="$SONAR_TOKEN" \ -Dsonar.host.url="$HOST_URL" \
-Dsonar.projectKey="$PROJECT_KEY" \ -Dsonar.token="$SONAR_TOKEN" \
-Dsonar.sources=. \ -Dsonar.projectKey="$PROJECT_KEY" \
-Dsonar.scm.disabled=true \ -Dsonar.sources=. \
-Dsonar.projectBaseDir="$WORKDIR" -Dsonar.scm.disabled=true \
-Dsonar.projectBaseDir="$WORKDIR"
docker: docker:
needs: [lint, sonar] needs: [lint, sonar]