diff --git a/infrastructure/services/Jenkinsfile b/infrastructure/services/Jenkinsfile index ccc4c7d..72bd10a 100644 --- a/infrastructure/services/Jenkinsfile +++ b/infrastructure/services/Jenkinsfile @@ -173,7 +173,6 @@ sonar.terraform.provider.aws=true def qg = waitForQualityGate() if (qg.status != 'OK') { echo "โŒ Quality Gate failed: ${qg.status}" - // Don't fail the build for demo purposes, but log the issue echo "๐Ÿ’ก Continuing despite Quality Gate failure for demo" } else { echo "โœ… Quality Gate passed!" @@ -181,14 +180,19 @@ sonar.terraform.provider.aws=true } catch (Exception e) { echo "โŒ Quality Gate check failed: ${e.getMessage()}" echo "๐Ÿ’ก This might be due to SonarQube server issues or configuration problems" - // Manual approval as fallback - input message: 'SonarQube Quality Gate failed or unavailable. Continue anyway?', ok: 'Continue' + + // ONLY prompt for deploy actions + if (params.ACTION == 'deploy') { + input message: 'SonarQube Quality Gate failed. Continue anyway?', ok: 'Continue' + } else { + // For plan/destroy - just continue automatically + echo "โš ๏ธ Quality gate check failed for ${params.ACTION}, but continuing..." + } } } } } } - stage('๐Ÿงช Application Tests') { when { not {