updated docs to show correct yaml file example

This commit is contained in:
Clement Venard
2017-11-28 12:56:49 +08:00
parent 8c88a08985
commit 822bdbdb0d
+13 -9
View File
@@ -2,9 +2,10 @@ Use the wechat plugin to notify users during the Drone pipeline.
Please only use these paramters for now:
* `access_token` - The access token for authorization
* `agentid` - The agent id to send the message
* `msgurl` - The agent id to send the message
* `corpid` - The corpid for authorization
* `corp_secret` - The corp secret for authorization
* `agent_id` - The agent id to send the message
* `msg_url` - The agent id to send the message
* `btntxt` - The text for the button on the card
* `title` - Title of the card
* `description` - Text description of the card
@@ -14,13 +15,16 @@ Please only use these paramters for now:
The following is a sample configuration in your .drone.yml file:
```yaml
pipeline:
wechat:
image: clem109/drone-wechat
corpid: corpid
corp_secret: corpsecret
agent_id: 123456
title: title
description: some description
msg_url: someurl
btn_txt: btn text
corp_secret: secret
agent_id: 1234567
title: ${DRONE_REPO_NAME}
description: "Build Number: ${DRONE_BUILD_NUMBER} failed. ${DRONE_COMMIT_AUTHOR} please fix. Check the results here: ${DRONE_BUILD_LINK} "
msg_url: ${DRONE_BUILD_LINK}
btn_txt: btn
when:
status: [ failure ]
```