简体   繁体   English

如何根据不同的工作发送电子邮件通知

[英]How to send email notification on the basis of different job

I have job A which trigger build on the basis of commit, after completion of job A, job B will get triggered as downstream job. 我有一个基于提交触发构建的作业A,在完成作业A之后,作业B将作为下游作业触发。

IN my case both job A and B send email notification. 就我而言,工作A和B都发送电子邮件通知。

How can i configure like job A trigger job B so that after successful completion of job B , i wanted to send email notification to the committer of job A aswellas global recipient. 我如何配置像作业A那样触发作业B,以便在成功完成作业B之后,我想向作业A的提交者以及全球收件人发送电子邮件通知。

Can any one help me regarding this? 有人可以帮我吗?

Thanks in Advance 提前致谢

1. Try the Blame Upstream Committers plugin. 1.试用Blame Upstream Committers插件。

2. If you trigger Job-B via "trigger parameterized build" from Job-A, then you can pass any information from Job-A to Job-B. 2.如果通过Job-A的“触发参数化构建”触发Job-B,则可以将任何信息从Job-A传递到Job-B。

(for that one, I am not sure how the committer is saved - please advise the plugin you use and if the committer is listed as an environment variable of some sort). (为此,我不确定提交器的保存方式-请告知您使用的插件以及提交器是否被列为某种环境变量)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM