automated terminal push
This commit is contained in:
12
infrastructure/services/Jenkinsfile
vendored
12
infrastructure/services/Jenkinsfile
vendored
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user