简体   繁体   中英

Jenkins Email Notification and GIT

I'm new to Jenkins and I need to change the content of the default email notifications such that in addition to the default message they'll also show the GIT_AUTHOR and GIT_MESSAGE and possible some statistics about the various tests.

From my little research I understand that there are some plugins that might help me such as Email-ext plugin, Email-ext Template Plugin, Git Changelog Plugin. The concise documentation of the plugins didn't help me that much. Is there any way to achieve my goal using one of these plugins, and if so, how? If not, I assume I should do it with Groovy. In this case, how to obtain the contents of GIT_AUTHOR and GIT_MESSAGE using Groovy?

Thanks.

The token you can use in the email-ext plugin get dynamically extended by various plugins, see Token Macro Plugin , token producer section.

Install those git related plugins and consult the content token reference by clicking the ? just after the Attach build log combobox at the email content configuration, if i remember correctly author and message should be aviable.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM