ci:동시 빌드 방지 + 운영 배포 승인 Slack 알림 (#product_deploy)
- disableConcurrentBuilds() 추가 - Production Approval 단계에 #product_deploy 채널 알림 추가
This commit is contained in:
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@@ -1,6 +1,10 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
|
|
||||||
|
options {
|
||||||
|
disableConcurrentBuilds()
|
||||||
|
}
|
||||||
|
|
||||||
environment {
|
environment {
|
||||||
DEPLOY_USER = 'hskwon'
|
DEPLOY_USER = 'hskwon'
|
||||||
RELEASE_ID = new Date().format('yyyyMMdd_HHmmss')
|
RELEASE_ID = new Date().format('yyyyMMdd_HHmmss')
|
||||||
@@ -79,6 +83,8 @@ pipeline {
|
|||||||
stage('Production Approval') {
|
stage('Production Approval') {
|
||||||
when { branch 'main' }
|
when { branch 'main' }
|
||||||
steps {
|
steps {
|
||||||
|
slackSend channel: '#product_deploy', color: '#FF9800', tokenCredentialId: 'slack-token',
|
||||||
|
message: "🔔 *react* 운영 배포 승인 대기 중\nStage: https://stage.sam.it.kr\n<${env.BUILD_URL}input|승인하러 가기>"
|
||||||
timeout(time: 24, unit: 'HOURS') {
|
timeout(time: 24, unit: 'HOURS') {
|
||||||
input message: 'Stage 확인 후 운영 배포를 진행하시겠습니까?\nStage: https://stage.sam.it.kr',
|
input message: 'Stage 확인 후 운영 배포를 진행하시겠습니까?\nStage: https://stage.sam.it.kr',
|
||||||
ok: '운영 배포 진행'
|
ok: '운영 배포 진행'
|
||||||
|
|||||||
Reference in New Issue
Block a user