diff --git a/infrastructure/foundation/Jenkinsfile b/infrastructure/foundation/Jenkinsfile index 54668b0..7358890 100644 --- a/infrastructure/foundation/Jenkinsfile +++ b/infrastructure/foundation/Jenkinsfile @@ -781,21 +781,24 @@ Type 'DESTROY' exactly to confirm: } } - success { - script { - echo "✅ Foundation Layer pipeline completed successfully!" - - if (params.ACTION == 'apply') { - def message = """ +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