您可以获取作者名称,然后将其用作邮件注册表中的示例或类似的名称:
def author = ""def changeSet = currentBuild.rawBuild.changeSets for (int i = 0; i < changeSet.size(); i++) { def entries = changeSet[i].items; for (int i = 0; i < changeSet.size(); i++) { def entries = changeSet[i].items; def entry = entries[0] author += "${entry.author}" } } print author;
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)