ci:Jenkinsfile Slack 알림 추가 (slackSend #product_infra)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@@ -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']) {
|
||||
|
||||
Reference in New Issue
Block a user