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