santoshjpawar / concourse-email-notification

2 stars 5 forks source link

concourse-email-notification

Can be used to send HTML formatted email notifications from Concourse.CI build.

Following are the source values:

Following are the param values

Note: When multiple email addresses are provided in default_recipient param or in the author file, email will be sent with first email address as To and all email addresses as Bcc.

Sample pipeline

Check an example pipeline from sample-pipeline directory.

Once you update these yaml files, you can set the pipeline in Concourse using following command,

fly -t set-pipeline -p concourse-email-notification -c sample-pipeline.yml -l credentials.yml

Then unpause the pipeline from Concourse UI or by executing following command,

fly -t unpause-pipeline -p concourse-email-notification

Building docker image

Makefile is provided to build the Docker image with following targets.

Authorize the device

Gmail blocks the unknown device used to send the email. When sending an email from any new device, you will get an error something like this...

534-5.7.14 Please log in via your web browser and 534-5.7.14 then try again. 534-5.7.14 Learn more at 534 5.7.14 https://support.google.com/mail/answer/78754 hw7sm51688135pac.12 - gsmtp 

In that case, you may need to authorize the device by logging into the Google account.