From 37136c66694b6ff3391c03bd0d47140536bb788d Mon Sep 17 00:00:00 2001 From: ondal Date: Mon, 1 Dec 2025 11:24:05 +0900 Subject: [PATCH] =?UTF-8?q?Jenkinsfile=EC=97=90=EC=84=9C=20SonarQube=20?= =?UTF-8?q?=EB=B6=84=EC=84=9D=20=EC=8A=A4=ED=85=8C=EC=9D=B4=EC=A7=80=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - SonarQube Analysis & Quality Gate 스테이지 삭제 - 빌드 파이프라인 단순화 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- deployment/cicd/Jenkinsfile | 38 ------------------------------------- 1 file changed, 38 deletions(-) diff --git a/deployment/cicd/Jenkinsfile b/deployment/cicd/Jenkinsfile index 425f07b..ec345fd 100644 --- a/deployment/cicd/Jenkinsfile +++ b/deployment/cicd/Jenkinsfile @@ -92,44 +92,6 @@ podTemplate( } } - stage('SonarQube Analysis & Quality Gate') { - if (skipSonarQube) { - echo "⏭️ Skipping SonarQube Analysis (SKIP_SONARQUBE=${params.SKIP_SONARQUBE})" - } else { - container('gradle') { - services.each { service -> - if (service != 'api-gateway') { - withSonarQubeEnv('SonarQube') { - echo "🔍 Starting SonarQube analysis for ${service}..." - - sh """ - ./gradlew :${service}:test :${service}:jacocoTestReport :${service}:sonar \\ - -Dsonar.projectKey=phonebill-${service}-${environment} \\ - -Dsonar.projectName=phonebill-${service}-${environment} \\ - -Dsonar.java.binaries=build/classes/java/main \\ - -Dsonar.coverage.jacoco.xmlReportPaths=build/reports/jacoco/test/jacocoTestReport.xml \\ - -Dsonar.exclusions=**/config/**,**/entity/**,**/dto/**,**/*Application.class,**/exception/** - """ - - echo "✅ SonarQube analysis completed for ${service}" - } - - timeout(time: 5, unit: 'MINUTES') { - echo "⏳ Waiting for Quality Gate result for ${service}..." - def qg = waitForQualityGate() - if (qg.status != 'OK') { - error "❌ Quality Gate failed for ${service}: ${qg.status}" - } else { - echo "✅ Quality Gate passed for ${service}" - } - } - } - } - - echo "🎉 All services passed SonarQube Quality Gates!" - } - } - } stage('Build & Push Images') { timeout(time: 30, unit: 'MINUTES') {