ci:Jenkinsfile Slack 알림 추가 (slackSend #product_infra)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-24 20:45:50 +09:00
parent 8096514e93
commit d1a09935e2

8
Jenkinsfile vendored
View File

@@ -87,9 +87,13 @@ pipeline {
}
post {
success { echo "✅ api 배포 완료 (${env.BRANCH_NAME})" }
success {
slackSend channel: '#product_infra', color: 'good',
message: "✅ *api* 배포 성공 (`${env.BRANCH_NAME}`)\n<${env.BUILD_URL}|빌드 #${env.BUILD_NUMBER}>"
}
failure {
echo "❌ api 배포 실패 (${env.BRANCH_NAME})"
slackSend channel: '#product_infra', color: 'danger',
message: "❌ *api* 배포 실패 (`${env.BRANCH_NAME}`)\n<${env.BUILD_URL}|빌드 #${env.BUILD_NUMBER}>"
script {
if (env.BRANCH_NAME == 'main') {
sshagent(credentials: ['deploy-ssh-key']) {