«   2025/02   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28
Recent Posts
Today
Total
02-28 06:01
300x250
관리 메뉴

변군이글루(Mirror)

Jenkins와 Slack을 연동하여 알림을 받는 방법 본문

기타

Jenkins와 Slack을 연동하여 알림을 받는 방법

변군Dev 2024. 3. 15. 16:05
728x90

Jenkins와 Slack을 연동하여 알림을 받는 방법

Slack 설정

  • Slack 워크스페이스에서 채널을 생성합니다.
  • Slack 앱 관리 페이지로 이동하여 "Jenkins CI" 앱을 검색하고 추가합니다.

Jenkins_CI
Jenkins_CI

Jenkins 설정

  • 젠킨스 플러그인 설치

Dashboard > Jenkins 관리 > Plugins

  • Global Slack Notifier Plugin
  • Slack Notification Plugin

  • 슬랙 크리덴셜 생성

Dashboard > Jenkins 관리 > Credentials

Jenkins

Dashboard > Jenkins 관리 > Credentials > System > Global credentials (unrestricted)

  • Kind : Secret test
  • Scope : Global (Jenkins, nodes, items, all child items, etc)
  • Secret : 슬랙 토큰
  • ID : 크리덴셜 이름
  • Description : 크리덴셜 이름

Jenkins

  • 젠킨스 시스템 설정

Dashboard > Jenkins 관리 > System

  • Workspace : 슬랙 채널 이름
  • Credential : 젠킨스 크리덴셜
  • Default channel / member id : 슬랙 채널

Jenkins

  • Slack 알람 테스트

Slack

 

Jenkins에서 Slack으로 알림을 받을 수 있습니다.

 

728x90