diff --git a/Jenkinsfile b/Jenkinsfile index 1a00683..243be46 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,7 +8,11 @@ pipeline { stages { stage('Checkout') { - steps { checkout scm } + steps { + slackSend channel: '#product_infra', color: '#439FE0', tokenCredentialId: 'slack-token', + message: "πŸš€ *api* λΉŒλ“œ μ‹œμž‘ (`${env.BRANCH_NAME}`)\n<${env.BUILD_URL}|λΉŒλ“œ #${env.BUILD_NUMBER}>" + checkout scm + } } // ── main β†’ μš΄μ˜μ„œλ²„ Stage 배포 ── @@ -99,9 +103,13 @@ pipeline { } post { - success { echo "βœ… api 배포 μ™„λ£Œ (${env.BRANCH_NAME})" } + success { + slackSend channel: '#product_infra', color: 'good', tokenCredentialId: 'slack-token', + message: "βœ… *api* 배포 성곡 (`${env.BRANCH_NAME}`)\n<${env.BUILD_URL}|λΉŒλ“œ #${env.BUILD_NUMBER}>" + } failure { - echo "❌ api 배포 μ‹€νŒ¨ (${env.BRANCH_NAME})" + slackSend channel: '#product_infra', color: 'danger', tokenCredentialId: 'slack-token', + message: "❌ *api* 배포 μ‹€νŒ¨ (`${env.BRANCH_NAME}`)\n<${env.BUILD_URL}|λΉŒλ“œ #${env.BUILD_NUMBER}>" script { if (env.BRANCH_NAME == 'main') { sshagent(credentials: ['deploy-ssh-key']) {