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

jenkins: e-mail notification on job completion #1502

Closed
mmarchini opened this issue Sep 20, 2018 · 3 comments
Closed

jenkins: e-mail notification on job completion #1502

mmarchini opened this issue Sep 20, 2018 · 3 comments
Labels

Comments

@mmarchini
Copy link
Contributor

I've been looking into how to easily setup #746 so collaborators get notified when a job finishes. The easiest way is to notify by e-mail and let the collaborator opt-in when they want to be notified.

To accomplish that, we need to use Email-ext plugin, because Jenkins Mailer Plugin only notifies on failures (or success builds after failures).

I tested this in a separate job and it seems to be working. Collaborators will have another field to fill when they want to be notified:

image

The e-mail will look like this (we can improve the message in the future):

image

Steps to add this to node-test-pull-request:

Add a new paramenter NOTIFY_EMAILS

image

Add a new post-build action Editable Email Notification

  • Set Project Recipient List to $NOTIFY_EMAILS
  • Leave Project Reply To List empty

image

Advanced Editable Email Notification setting

  • Remove all Triggers
  • Add a new one
    • When: Always
    • Send to: Recipient List

image

If @nodejs/build is fine with this approach, I can make the changes to node-test-pull-request.

@mhdawson
Copy link
Member

I assume it does not affect the existing notifications on failures. As long as that is the case +1 from me.

@mmarchini
Copy link
Contributor Author

These settings shouldn't interfere with existing notifications.

@github-actions
Copy link

github-actions bot commented Mar 7, 2020

This issue is stale because it has been open many days with no activity. It will be closed soon unless the stale label is remove or a comment is made.

@github-actions github-actions bot added the stale label Mar 7, 2020
@github-actions github-actions bot closed this as completed Apr 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants