JENKINS : Is there a Jenkins Variable to get user name who did last commit in stash

假装没事ソ 提交于 2019-12-23 04:46:05

问题


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:


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"}



来源:https://stackoverflow.com/questions/24450425/jenkins-is-there-a-jenkins-variable-to-get-user-name-who-did-last-commit-in-st

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!