automated terminal push
This commit is contained in:
17
infrastructure/foundation/Jenkinsfile
vendored
17
infrastructure/foundation/Jenkinsfile
vendored
@@ -781,21 +781,24 @@ Type 'DESTROY' exactly to confirm:
|
||||
}
|
||||
}
|
||||
|
||||
success {
|
||||
success {
|
||||
script {
|
||||
echo "✅ Foundation Layer pipeline completed successfully!"
|
||||
|
||||
if (params.ACTION == 'apply') {
|
||||
// Compute approver line outside the multi-line string
|
||||
def approverLine = env.DEPLOYMENT_APPROVER ? "• Approved by: ${env.DEPLOYMENT_APPROVER}" : ""
|
||||
|
||||
def message = """
|
||||
🎉 Foundation Layer Deployment Complete!
|
||||
|
||||
📊 Deployment Details:
|
||||
• Environment: ${params.ENVIRONMENT}
|
||||
• Region: ${params.AWS_REGION}
|
||||
• Project: ${params.PROJECT_NAME}
|
||||
• Build: #${BUILD_NUMBER}
|
||||
• Duration: ${currentBuild.durationString}
|
||||
${env.DEPLOYMENT_APPROVER ? "• Approved by: " + env.DEPLOYMENT_APPROVER : ""}
|
||||
- Environment: ${params.ENVIRONMENT}
|
||||
- Region: ${params.AWS_REGION}
|
||||
- Project: ${params.PROJECT_NAME}
|
||||
- Build: #${BUILD_NUMBER}
|
||||
- Duration: ${currentBuild.durationString}
|
||||
${approverLine}
|
||||
|
||||
🏗️ Infrastructure Created:
|
||||
• VPC with multi-AZ public subnets
|
||||
|
||||
Reference in New Issue
Block a user