Sign inSign up

herry1234/drone-spark

By herry1234

•Updated over 9 years ago

drone 0.5 spark plugin

Image
0

208

herry1234/drone-spark repository overview

⁠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

Tag summary

Content type

Image

Digest

Size

32.6 MB

Last updated

over 9 years ago

docker pull herry1234/drone-spark