updated slack notifications
aiis/pipeline/head This commit looks good

This commit is contained in:
2026-05-19 16:36:40 +02:00
parent 7fc5fc262f
commit 02fca51bf7
+11 -6
View File
@@ -88,15 +88,20 @@ pipeline {
post {
success {
slackSend teamDomain: 'pgaiis',
channel: '#jenkins',
color: 'good',
message: "✅ Build SUCCESS: ${env.JOB_NAME} #${env.BUILD_NUMBER}"
channel: '#jenkins',
color: 'good',
message: "✅ *Build SUCCESS*: ${env.JOB_NAME} #${env.BUILD_NUMBER}\n" +
"Branch: `${env.BRANCH_NAME}` | Duration: ${currentBuild.durationString}\n" +
"Console: ${env.BUILD_URL}console"
}
failure {
slackSend teamDomain: 'pgaiis',
channel: '#jenkins',
color: 'danger',
message: "❌ Build FAILED: ${env.JOB_NAME} #${env.BUILD_NUMBER}"
channel: '#jenkins',
color: 'danger',
message: "❌ *Build FAILED*: ${env.JOB_NAME} #${env.BUILD_NUMBER}\n" +
"Branch: `${env.BRANCH_NAME}` | Duration: ${currentBuild.durationString}\n" +
"Failed stage: ${env.STAGE_NAME ?: 'unknown'}\n" +
"Console: ${env.BUILD_URL}console"
}
always {
sh 'rm -f app-image.tar.gz'