Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send individual notification when pipeline fails #464

Merged
merged 3 commits into from
Oct 22, 2019

Conversation

tjcrone
Copy link
Contributor

@tjcrone tjcrone commented Oct 19, 2019

This adds the ability to send an email from inside the CircleCI configuration, and sets up the CircleCI configuration to email me when the OOI deployment pipeline fails. As suggested here, this uses SendGrid to send email. We will need to add the Pangeo SendGrid API key to the CircleCI environment variables to make this work.

@tjcrone
Copy link
Contributor Author

tjcrone commented Oct 20, 2019

Just refactored the email script so that it is more general, and accepts an email address, subject line, and email body as arguments. Thoughts? Feelings?

@tjcrone tjcrone requested a review from jhamman October 20, 2019 15:05
@tjcrone
Copy link
Contributor Author

tjcrone commented Oct 21, 2019

I am interested in getting input on this. Any thoughts @jhamman? It's not clear to me why this is failing, as it should do nothing as long as the OOI deployment does not fail. It appears that the failure might be inherited from my fork, where I was forcing failure to test the script, and that seems weird but it's possible. I think this can be merged with no impact but I am interested to hear thoughts on the approach. This script might be useful in other contexts as well. Thanks!

@jhamman jhamman merged commit b67f36b into pangeo-data:staging Oct 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants