To configure notifications of the use of drone

First, configure the email alert

steps:
  ......
  - name: notify
    image: drillster/drone-email
    settings:
      host: SMTPserver      //例如 smtp.qq.com  
      port: SMTPserverport   //例如QQ邮箱端口465
      username: [email protected]  //邮箱用户名
      password: xxxxxxxx   //邮箱密码
      from: xxxxxxxxxxx 
      recipients: xxxxxxxxxxxxx  //收件人
    when:    //执行条件
      status: 
      - success
      - changed
      - failure

Note: Other configuration parameters

Second, the configuration alarm nailing

steps:
  ......
- name: dingtalk
  image: lddsb/drone-dingtalk-message
  settings:
    token: your-dingtalk-robot-access-token
    type: markdown
    message_color: true
    message_pic: true
    sha_link: true

Note: Other configuration parameters
your-dingtalk-robot-access- token acquisition
to add robot

To configure notifications of the use of droneTo configure notifications of the use of drone

To configure notifications of the use of drone
To configure notifications of the use of drone
To configure notifications of the use of drone

Copy webhook, get access_token

Guess you like

Origin blog.51cto.com/8588192/2456448
Recommended