From 117f27effc138518d3792314ce4168e0afded8ae Mon Sep 17 00:00:00 2001 From: Leonid Pershin Date: Fri, 31 Oct 2025 21:06:40 +0300 Subject: [PATCH] Remove Quality Gate wait step from SonarQube workflow to simplify the analysis process and improve efficiency. --- .github/workflows/sonarqube.yml | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml index a4e16f4..1277988 100644 --- a/.github/workflows/sonarqube.yml +++ b/.github/workflows/sonarqube.yml @@ -67,32 +67,3 @@ jobs: echo "Ending SonarQube analysis..." ~/.sonar/scanner/dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}" - - name: Wait for Quality Gate - run: | - echo "Waiting for SonarQube Quality Gate result..." - sleep 10 - - # Get Quality Gate status using jq for proper JSON parsing - RESPONSE=$(curl -s -u "${{ secrets.SONAR_TOKEN }}:" \ - "${{ secrets.SONAR_HOST_URL }}/api/qualitygates/project_status?projectKey=AIImages") - - echo "API Response: $RESPONSE" - - # Install jq if not available - if ! command -v jq &> /dev/null; then - sudo apt-get update && sudo apt-get install -y jq - fi - - QUALITY_GATE_STATUS=$(echo "$RESPONSE" | jq -r '.projectStatus.status') - - echo "Quality Gate Status: $QUALITY_GATE_STATUS" - - if [ "$QUALITY_GATE_STATUS" != "OK" ]; then - echo "❌ Quality Gate failed! Status: $QUALITY_GATE_STATUS" - echo "Please check the SonarQube dashboard for details:" - echo "${{ secrets.SONAR_HOST_URL }}/dashboard?id=AIImages" - exit 1 - else - echo "✅ Quality Gate passed!" - fi -