Drone.io의 Slack 알림으로 author에게 mention을 비행
![:thinking:](https://s1.md5.ltd/image/83b3d7fd38082f7ab23d6c42749bfc96.png)
→
![:bulb:](https://s1.md5.ltd/image/f96fa98bd909269b00023678c4b36fc5.png)
→
![:innocent:](https://s1.md5.ltd/image/819d7dbf43790b9bed2afa41a5509524.png)
그렇다면 실패시 Slack에서 mention을받을 수 있도록 설정합니다. 메세지중의 author 표시부에
@
가 붙는 이미지입니다.공식 문서 에 custom message template 에 대한 설명이 있으므로, 이것을 참고로 아래와 같이
template:
를 설정해 보았습니다.pipeline:
test:
# ...
slack:
image: plugins/slack
channel: drone
secrets: [ slack_webhook ]
when:
status: [ success, failure ]
template: |
*{{build.status}}* <{{build.link}}|{{repo.owner}}/{{repo.name}}#{{build.number}}> ({{build.branch}} {{truncate build.commit 8}}) by {{#success build.status}}{{build.author}}{{else}}<@{{build.author}}>{{/success}}
<@{{build.author}}>
라는 곳에서 mention을 건너뛰고 있습니다만, 이 설정에서는 commit author 가 Slack상에서의 자신의 계정명이 되도록(듯이) 할 필요가 있습니다. 그렇게 할 수 없다면 특정 계정 이름을 하드 코딩하거나 <!everyone>
로 전체 채널에 알립니다.![](https://s1.md5.ltd/image/a821179a3720e4f579a55c0659fba529.png)
매우 편안합니다
![:sparkles:](https://s1.md5.ltd/image/fc43e56c37848a064936d123ade90dde.png)
Reference
이 문제에 관하여(Drone.io의 Slack 알림으로 author에게 mention을 비행), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/townewgokgok/items/72338cc310883b28bc9e텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)