Sign inSign up

tangwan/gitlab-feishu

By tangwan

•Updated over 3 years ago

gitlab-ci 发送CI/CD消息到飞书群

Image
0

95

tangwan/gitlab-feishu repository overview

⁠gitlab-ci 发送CI/CD消息到飞书群

  • .gitlab-ci.yml
stages:
  - feishu

feishu-failure:
  stage: feishu
  image: tangwan/gitlab-feishu:1.3.2
  script:
    - gitlab-feishu -s failure -u all
  when: on_failure
  only:
    - master

feishu-success:
  stage: feishu
  image: tangwan/gitlab-feishu:1.3.2
  script:
    - gitlab-feishu -s success -u all
  when: on_success
  only:
    - master

-u bb1e717b 发送消息时@指定用户

-u all 发送消息时@所有人

  • 消息内容例子:
CI/CD结果通知
构建项目: app-name
构建模块: module-name
构建分支: pre
发布环境: pre Kuboard
构建状态: success
更新内容: Merge branch test into pre
更新详情: e5d85aa49096307d941b6e3f02017d40fbb0ac9c
更新作者: tangwan([email protected])
点击查看CI流水线详情: :)
@所有人

Tag summary

Content type

Image

Digest

sha256:ed73c1259…

Size

16 MB

Last updated

over 3 years ago

docker pull tangwan/gitlab-feishu:1.3.2