Skip to content

Drone plugin for sending notifications with Cisco Spark.

Notifications You must be signed in to change notification settings

3pings/drone-spark

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

drone-spark

This is a plugin for drone.io, a Continuous Integration and Deployment server.

This plugin currently only supports Drone 0.4

This plugin will allow you to send notifications using Cisco Spark.

Usage Examples

.drone.yml

See DOCS.md for how to configure and use the plugin.

Python

python send_message.py <<EOF
{
    "system": {
        "link_url": "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]", 
        "link_url": "https://github.com/octocat/hello-world",
        "message": "Testing...",
        "status": "success"
    },
    "workspace": {
        "root": "/drone/src",
        "path": "/drone/src/github.com/octocat/hello-world",
        "keys": {
            "private": "-----BEGIN RSA PRIVATE KEY-----\nMIICXAIBAAKBgQC..."
        }
    },
    "vargs": {
        "message": "# Sending Spark Message \n Using Markdown!!!",
		"auth_token": "ZmRm....",
		"roomName": "ROOM NAME"
    }
}
EOF

Docker

docker run -i hpreston/drone-spark <<EOF
{
    "system": {
        "link_url": "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]", 
        "link_url": "https://github.com/octocat/hello-world",
        "message": "Testing...",
        "status": "success"
    },
    "workspace": {
        "root": "/drone/src",
        "path": "/drone/src/github.com/octocat/hello-world",
        "keys": {
            "private": "-----BEGIN RSA PRIVATE KEY-----\nMIICXAIBAAKBgQC..."
        }
    },
    "vargs": {
        "message": "# Sending Spark Message \n Using Markdown!!!",
		"auth_token": "ZmRm....",
		"roomName": "ROOM NAME"
    }
}
EOF

Roadmap and Plans

This plugin is in active development and has the following features planned

  • Support for Drone 0.5
  • Support for handlebar templating like other notification templates
  • Support for referencing the environment variables used by Drone

About

Drone plugin for sending notifications with Cisco Spark.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%