diff --git a/Jenkinsfile b/Jenkinsfile index df9d191..e3eb5c6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,6 +1,10 @@ pipeline { agent any + options { + disableConcurrentBuilds() + } + environment { DEPLOY_USER = 'hskwon' RELEASE_ID = new Date().format('yyyyMMdd_HHmmss') @@ -50,6 +54,8 @@ pipeline { stage('Production Approval') { when { branch 'main' } steps { + slackSend channel: '#product_deploy', color: '#FF9800', tokenCredentialId: 'slack-token', + message: "🔔 *api* 운영 배포 승인 대기 중\nStage API: https://stage-api.sam.it.kr\n<${env.BUILD_URL}input|승인하러 가기>" timeout(time: 24, unit: 'HOURS') { input message: 'Stage 확인 후 운영 배포를 진행하시겠습니까?\nStage API: https://stage-api.sam.it.kr', ok: '운영 배포 진행'