Sending email notifications to per-job email addresses

16 views
Skip to first unread message

Alexandru Băluț

unread,
May 13, 2019, 11:49:57 AM5/13/19
to Jenkins Users
The jobs in my setup are triggered externally and the job gets as parameter a commit SHA and at the end, depending on the result, a person picked by the job should get an email. 

I'm trying to use Editable Email Notification for this, but I'm not sure how to make it work.

- In Triggers I added "Always" with Send To: Culprits, but is there a way to set the culprits list manually?

- Is there a way for the job to set an environment variable to be used in the Project Recipient List field?

 

Slide

unread,
May 13, 2019, 1:20:03 PM5/13/19
to Jenkins User Mailing List
- There should be another recipient provider you can setup that will take the list from the Project Recipient List.

- The Project Recipient field will go through the token macro plugin to replace environment variables and other tokens. 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6408a676-1f02-467c-aa58-d7df2dc82e2d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

Alexandru Băluț

unread,
May 14, 2019, 9:51:02 AM5/14/19
to Jenkins Users
Luckily I found the FILE macro is provided by the Token Macro plugin itself. Then I just have to write the email address to a file in the workspace and use it in the Project Recipients list using the FILE macro. Thanks for the suggestion!


On Monday, May 13, 2019 at 7:20:03 PM UTC+2, slide wrote:
- There should be another recipient provider you can setup that will take the list from the Project Recipient List.

- The Project Recipient field will go through the token macro plugin to replace environment variables and other tokens. 

On Mon, May 13, 2019 at 8:50 AM Alexandru Băluț <a...@daedalean.ai> wrote:
The jobs in my setup are triggered externally and the job gets as parameter a commit SHA and at the end, depending on the result, a person picked by the job should get an email. 

I'm trying to use Editable Email Notification for this, but I'm not sure how to make it work.

- In Triggers I added "Always" with Send To: Culprits, but is there a way to set the culprits list manually?

- Is there a way for the job to set an environment variable to be used in the Project Recipient List field?

 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkins...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages