0
我有一个jenkins管道工作,检查3个存储库。Jenkins管道currentBuild.changeSets和检索每个存储库的电子邮件
当构建失败时,根据失败的位置,我想发送电子邮件给导致上次提交/更改的开发人员。
我可以检索作者fullNames本:
def changeSet = script.currentBuild.changeSets[0];
Set authors = [];
if (changeSet != null) {
for (change in changeSet.items) {
authors.add(change.author.fullName)
}
}
但我想不通:
- 我怎样才能得到作者的电子邮件?
- 如何区分不同储存库的作者?