JENKINS:是否有一个Jenkins变量来获取上次隐式提交的用户名 [英] JENKINS : Is there a Jenkins Variable to get user name who did last commit in stash

查看:131
本文介绍了JENKINS:是否有一个Jenkins变量来获取上次隐式提交的用户名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个任务,可以隐瞒每次提交来运行jenkins作业.在电子邮件正文中,我需要提及上次将代码存储起来的用户名.

I got a task to run jenkins job for every commit in stash. And in email body I need to mentioned the user name who last pushed code in to stash.

是否有任何Jenkins变量来获取上次隐式提交的用户名

Is there any Jenkins Variable to get user name who did last commit in stash

推荐答案

您应该查看

You should look at Email-ext plugin. It provides a ton a features and control over the email, including what you are asking.

尤其是,要仅显示提交更改的用户的名称,请使用: ${CHANGES, format="%a"}

In particular, to display just the name of the user who committed a change, use: ${CHANGES, format="%a"}

这篇关于JENKINS:是否有一个Jenkins变量来获取上次隐式提交的用户名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆