diff --git a/Jenkinsfile b/Jenkinsfile index 8ea8e55..7ede65f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,11 +7,6 @@ pipeline { choices: ['dev', 'staging', 'prod'], description: 'Target environment' ) - choice( - name: 'SKIP_SONARQUBE', - choices: ['true', 'false'], - description: 'Skip SonarQube Analysis' - ) } environment { @@ -33,7 +28,6 @@ pipeline { // Credentials ACR_CREDENTIALS = credentials('acr-credentials') DOCKERHUB_CREDENTIALS = credentials('dockerhub-credentials') - SONAR_TOKEN = credentials('sonar-token') GIT_CREDENTIALS = credentials('git-credentials') } @@ -100,33 +94,6 @@ pipeline { } } - stage('SonarQube Analysis') { - when { - expression { params.SKIP_SONARQUBE == 'false' } - } - steps { - script { - echo "🔍 Running SonarQube Analysis..." - - withSonarQubeEnv('SonarQube') { - env.SERVICES.split().each { service -> - echo "Analyzing ${service}..." - sh """ - ./gradlew :${service}:test :${service}:jacocoTestReport :${service}:sonar \ - -Dsonar.projectKey=hgzero-${service}-${params.ENVIRONMENT} \ - -Dsonar.projectName=hgzero-${service}-${params.ENVIRONMENT} \ - -Dsonar.host.url=\${SONAR_HOST_URL} \ - -Dsonar.token=\${SONAR_TOKEN} \ - -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/** - """ - } - } - } - } - } - stage('Archive Artifacts') { steps { script {