automated terminal push

This commit is contained in:
lenape
2025-08-05 20:57:28 +00:00
parent fbe9d3701b
commit 68d79465fe

View File

@@ -173,7 +173,6 @@ sonar.terraform.provider.aws=true
def qg = waitForQualityGate() def qg = waitForQualityGate()
if (qg.status != 'OK') { if (qg.status != 'OK') {
echo "❌ Quality Gate failed: ${qg.status}" 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" echo "💡 Continuing despite Quality Gate failure for demo"
} else { } else {
echo "✅ Quality Gate passed!" echo "✅ Quality Gate passed!"
@@ -181,14 +180,19 @@ sonar.terraform.provider.aws=true
} catch (Exception e) { } catch (Exception e) {
echo "❌ Quality Gate check failed: ${e.getMessage()}" echo "❌ Quality Gate check failed: ${e.getMessage()}"
echo "💡 This might be due to SonarQube server issues or configuration problems" 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') { stage('🧪 Application Tests') {
when { when {
not { not {