Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们有一个环境,svn凭据是 Linux 用户名,包括:一个名字的字母和 5 个姓氏的字母。但是,我们有格式为 的电子邮件地址firstname。lastname@company.org。我们有一种方法可以使用脚本将凭证名称与电子邮件地址联系起来,但是我不知道如何告诉 jenkins 在检测到新用户签入时使用此脚本。
svn
firstname
lastname
是否有一种简单的方法可以运行脚本以在创建新用户时生成用户的电子邮件地址?或者,每次用户应该接收邮件时计算电子邮件地址也可以。
通过 askmish 的小提示,我得出了这个结论:
安装电子邮件分机
配置项目以editable email notification 编辑 presend 脚本以读取如下内容:
editable email notification
import javax.mail.Message.RecipientType msg.setRecipients(RecipientType.TO, 'address@real.com' )
您可能还想做一些输出,否则只会显示错误的电子邮件地址。