Skip to main content

Build email notifications for Sloth CI apps

Project description

Sloth CI extension that adds an SMTP handler to the build logger in Sloth CI apps.

Extension params:

# Use the module sloth-ci.ext.build_email_notifications.
module: build_email_notifications

# Emails to send the notifications to.
emails:
    - foo@bar.com
    - admin@example.com

# Log level (number or valid Python logging level name).
# ERROR includes only build fails, WARNING adds partial completions,
# INFO adds completion, and DEBUG adds trigger notifications.
# Default is WARNING.
level: INFO

# The "from" address in the emails. Default is "build@sloth.ci."
from: notify@example.com

# The email subject on build trigger. You can use the {listen_point} placeholder.
# Default is "{listen_point}: Build Triggered."
subject_triggered: 'Triggered build on {listen_point}!'

# The email subject on build completion.You can use the {listen_point} placeholder.
# Default is "{listen_point}: Build Completed."
subject_completed: 'Hooray! {listen_point} works!'

# The email subject on build partial completion. You can use the {listen_point} placeholder.
# Default is "{listen_point}: Build Partially Completed."
subject_partially_completed: 'Better than nothing on {listen_point}'

# The email subject on build fail. You can use the {listen_point} placeholder.
# Default is "{listen_point}: Build Failed."
subject_failed: 'Fail on {listen_point}'

# SMTP settings.
# SMTP mail host and (if not default) port.
# Mandatory parameter.
mailhost: 'smtp-mail.outlook.com:25'

# SMTP login.
login: foo@bar.baz

# SMTP password.
password: bar

# If the SMTP server requires TLS, set this to true. Default is false.
# If necessary, you can provide a keyfile name or a keyfile and a certificate file names.
# This param is used only the login and password params are supplied.
secure: true
# secure:
#    -   keyfile
#    -   cerfile

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distributions

File details

Details for the file sloth-ci.ext.build_email_notifications-1.0.2.zip.

File metadata

File hashes

Hashes for sloth-ci.ext.build_email_notifications-1.0.2.zip
Algorithm Hash digest
SHA256 39aced5d561a428744670049c9a608faa191a808049b7ebef9de6dd9b317f8aa
MD5 a53347f0853ffa07ee1a9944a6178cf0
BLAKE2b-256 0868d374bc7c372a1ffe403afa21da5736fec3ae963459dcfcf9e77b3d4a93e4

See more details on using hashes here.

Provenance

File details

Details for the file sloth_ci.ext.build_email_notifications-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for sloth_ci.ext.build_email_notifications-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3e51afb08540d1231a39a71749d6e6f8ac29c0c9b12183498f0970b785260948
MD5 82f92a1f1e26ea384c8d77ebb39a4224
BLAKE2b-256 6bcc3ea7b75c23131520f93b4d54453b3361802bba1e9ce728a94613cfeaa7d5

See more details on using hashes here.

Provenance

File details

Details for the file sloth-ci.ext.build_email_notifications-1.0.2.win-amd64.exe.

File metadata

File hashes

Hashes for sloth-ci.ext.build_email_notifications-1.0.2.win-amd64.exe
Algorithm Hash digest
SHA256 6b01eb9c2ba4ed6c512b897196f419f1e7a6c063d633964e7945d366d1f7c923
MD5 f096ec97e797f50497452ae7580a1e77
BLAKE2b-256 818a3f33386256c546b0a4a728d473a63fda7948b4eff839cd561be532502c1c

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page