Drone plug-in for sending notifications through Cisco Spark.
5.0K
GitHub Link - hpreston/drone-spark
This is a plugin for drone.io, a Continuous Integration and Deployment server.
This plugin will allow you to send notifications using Cisco Spark.
Example notification
Build author: {{ build.author }}
You can also specify a message in the plugin configuraiton to send an additional custom notification.
The following is a sample Spark configuration in your .drone.yml file:
notify:
spark:
image: hpreston/drone-spark
auth_token: XXXXXXX
roomName: "Drone Build Notifications"
message: "Great job on your new build!!"
You will need to provide the following details to the plug-in
python send_message.py <<EOF
{
"system": {
"link": "http://drone.mycompany.com"
},
"repo": {
"owner": "octocat",
"name": "hello-world",
"full_name": "octocat/hello-world",
"link_url": "https://github.com/octocat/hello-world",
"clone_url": "https://github.com/octocat/hello-world.git"
},
"build": {
"number": 1,
"event": "push",
"branch": "master",
"commit": "436b7a6e2abaddfd35740527353e78a227ddcb2c",
"ref": "refs/heads/master",
"author": "octocat",
"author_email": "[email protected]"
},
"workspace": {
"root": "/drone/src",
"path": "/drone/src/github.com/octocat/hello-world",
"keys": {
"private": "-----BEGIN RSA PRIVATE KEY-----\nMIICXAIBAAKBgQC..."
}
},
"vargs": {
"auth_token": "ZmRmY2..",
"roomId": "Y2lzY...",
"message": "# Sending Spark Message \n Using Markdown!!!"
}
}
EOF
docker run -i hpreston/drone-spark <<EOF
{
"system": {
"link": "http://drone.mycompany.com"
},
"repo": {
"owner": "octocat",
"name": "hello-world",
"full_name": "octocat/hello-world",
"link_url": "https://github.com/octocat/hello-world",
"clone_url": "https://github.com/octocat/hello-world.git"
},
"build": {
"number": 1,
"event": "push",
"branch": "master",
"commit": "436b7a6e2abaddfd35740527353e78a227ddcb2c",
"ref": "refs/heads/master",
"author": "octocat",
"author_email": "[email protected]"
},
"workspace": {
"root": "/drone/src",
"path": "/drone/src/github.com/octocat/hello-world",
"keys": {
"private": "-----BEGIN RSA PRIVATE KEY-----\nMIICXAIBAAKBgQC..."
}
},
"vargs": {
"auth_token": "ZmRmY2..",
"roomId": "Y2lzY...",
"message": "# Sending Spark Message \n Using Markdown!!!"
}
}
EOF
This plugin is in active development and has the following features planned
Content type
Unrecognized
Digest
Size
32.7 MB
Last updated
almost 10 years ago
docker pull hpreston/drone-spark