.drone.yml
- name: notify-webhook
image: plugins/webhook
settings:
urls: http://xxx
debug: true
- name: notify-email
image: drillster/drone-email
settings:
host: smtp.xx.com
skip_verify: true
username: xxx@xx.com
password: xxx
from: xxx@xx.com
recipients: [ xxx@xx.com ]
# recipients_only: true
webhook logs
Webhook 1
URL: https://xxx
METHOD: POST
HEADERS: map[Content-Type:[application/json]]
REQUEST BODY: {"repo":{"owner":"drone","name":"drone"},"build":{"tag":"","event":"push","number":20,"commit":"xxxxxxxxxxxx","ref":"refs/heads/master","branch":"master","author":"","message":"xxx\n","status":"success","link":"http://drone.xxxxxx.com/drone/drone/20","started":1542293339,"created":1542293339}}
RESPONSE STATUS: 200 OK
RESPONSE BODY: {"errmsg":"msgtype is null","errcode":300001}
email logs
time="2018-11-15T16:27:01Z" level=error msg="Could not send email to \"{my password}\": gomail: could not send email 1: 501 Bad address syntax"
gomail: could not send email 1: 501 Bad address syntax