This commit is contained in:
Anupong Hompan 2025-10-25 22:55:20 +07:00
parent f6502ba50e
commit 1bbf44559a

3
Jenkinsfile vendored
View File

@ -138,7 +138,8 @@ pipeline {
# Optional: show Java & reachability
java -version || true
curl -sf "$SONAR_HOST_URL/api/system/health" || { echo "Cannot reach SonarQube at $SONAR_HOST_URL"; exit 1; }
# ไม่ต้องใช้ curl เพราะ API นี้ติดเรื่องสิทธิ์
# curl -sf "$SONAR_HOST_URL/api/system/health" || { echo "Cannot reach SonarQube at $SONAR_HOST_URL"; exit 1; }
# BEGIN (use injected URL/token; add verbose for diagnostics)
dotnet sonarscanner begin \