JENKINS : Is there a Jenkins Variable to get user

2019-06-09 20:31发布

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.

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

1条回答
ら.Afraid
2楼-- · 2019-06-09 20:52

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

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

查看更多
登录 后发表回答