woodpecker-email/README.md
Thomas Boerger 8484730b82 Integrated skip verify, gomail and templates
I have switched the mail sending mechanism to gomail to get more power
out of the sending method. Beside that I have added a flag to skip
certificate verification.

On top of that I have integrated the drone templating to make it
possible to overwrite the email templates optionally.

To be more compatible I have created a plaintext message format with the
help of html2text as well.
2016-02-01 12:55:41 +01:00

2.7 KiB

drone-email

Build Status Coverage Status

Drone plugin to send build status notifications via Email

Binary

Build the binary using make:

make deps build

Example

./drone-email <<EOF
{
    "repo": {
        "clone_url": "git://github.com/drone/drone",
        "owner": "drone",
        "name": "drone",
        "full_name": "drone/drone"
    },
    "system": {
        "link_url": "https://beta.drone.io"
    },
    "build": {
        "number": 22,
        "status": "success",
        "started_at": 1421029603,
        "finished_at": 1421029813,
        "message": "Update the Readme",
        "author": "johnsmith",
        "author_email": "john.smith@gmail.com",
        "event": "push",
        "branch": "master",
        "commit": "436b7a6e2abaddfd35740527353e78a227ddcb2c",
        "ref": "refs/heads/master"
    },
    "workspace": {
        "root": "/drone/src",
        "path": "/drone/src/github.com/drone/drone"
    },
    "vargs": {
        "from": "noreply@foo.com",
        "host": "smtp.mailgun.org",
        "port": 587,
        "username": "",
        "password": "",
        "recipients": [
            "octocat@github.com"
        ]
    }
}
EOF

Docker

Build the container using make:

make deps docker

Example

docker run -i plugins/drone-email <<EOF
{
    "repo": {
        "clone_url": "git://github.com/drone/drone",
        "owner": "drone",
        "name": "drone",
        "full_name": "drone/drone"
    },
    "system": {
        "link_url": "https://beta.drone.io"
    },
    "build": {
        "number": 22,
        "status": "success",
        "started_at": 1421029603,
        "finished_at": 1421029813,
        "message": "Update the Readme",
        "author": "johnsmith",
        "author_email": "john.smith@gmail.com"
        "event": "push",
        "branch": "master",
        "commit": "436b7a6e2abaddfd35740527353e78a227ddcb2c",
        "ref": "refs/heads/master"
    },
    "workspace": {
        "root": "/drone/src",
        "path": "/drone/src/github.com/drone/drone"
    },
    "vargs": {
        "from": "noreply@foo.com",
        "host": "smtp.mailgun.org",
        "port": 587,
        "username": "",
        "password": "",
        "recipients": [
            "octocat@github.com"
        ]
    }
}
EOF