From 1bbf44559a90f60d7c14245ae6e4c9564a046968 Mon Sep 17 00:00:00 2001 From: Anupong Hompan Date: Sat, 25 Oct 2025 22:55:20 +0700 Subject: [PATCH] JK --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 12ae774..04423df 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 \