3.0.2 • Published 2 months ago

screwdriver-notifications-email v3.0.2

Weekly downloads
58
License
BSD-3-Clause
Repository
github
Last release
2 months ago

Notifications (Email)

Version Downloads Build Status Open Issues License

Sends email notifications on certain build events.

Usage

npm install screwdriver-notifications-email

Initialization

The class has a variety of knobs to tweak when interacting with Email Notifications.

ParameterTypeDescription
configObjectConfiguration Object
config.hostStringSMTP Host URL
config.portNumberPort to use when connecting to SMTP
config.fromStringSender email address
config.usernameStringOptional username for SMTP
config.passwordStringOptional password for SMTP

The interface looks for email-specific build data:

ParameterTypeDescription
buildDataObjectBuild Data Object
buildData.statusStringBuild status update for notification
buildData.settingsObjectPluggable settings for each build
buildData.settings.emailObjectEmail-specific settings
buildData.pipelineNameStringName of your pipeline
buildData.jobNameStringJob this email is being sent for
buildData.buildIdNumberBuild number this email is being sent for
buildData.buildLinkStringLink to build

buildData.settings.email can take either:

Simple Configuration

buildData.settings.email = 'notify.me@email.com'

Advanced Configuration

buildData.settings.email = {
    addresses: ['notify.me@email.com', 'notify.you@email.com'], // Multiple recipient addresses
    statuses: ['SUCCESS', 'FAILURE'] // Build statuses to notify addresses about
}

Testing

npm test

License

Code licensed under the BSD 3-Clause license. See LICENSE file for terms.

3.0.2

2 months ago

3.0.1

9 months ago

3.0.0

1 year ago

2.3.1

2 years ago

2.3.0

2 years ago

2.2.0

3 years ago

2.1.5

3 years ago

2.1.4

3 years ago

2.1.3

3 years ago

2.1.2

3 years ago

2.1.1

3 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.10

5 years ago

1.1.9

6 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.1

7 years ago