简体   繁体   English

jenkins-在构建时获取有关已更改文件的电子邮件通知

[英]jenkins - Get Email notification on changed files while building

I use jenkins to build from two GIT repositories. 我使用jenkins从两个GIT存储库中构建。 I also use the Email-ext plugin and i want it to send me when it builds a list of all the files that has been changed since the last build. 我还使用Email-ext插件,并且希望它在构建自上次构建以来已更改的所有文件的列表时将其发送给我。

(I need this because sometimes configs file are being changed without any sign and I use a config file control tool so i need to update it when a config file changes). (我需要这样做,因为有时会更改配置文件而没有任何符号,并且我使用配置文件控制工具,因此当配置文件更改时我需要对其进行更新)。

I tried to use $CHANGES but it only gives me the description of the changes form the repository. 我尝试使用$ CHANGES,但它仅提供了有关存储库更改的描述。 i need to know which files has changed. 我需要知道哪些文件已更改。

You want to use the following 您要使用以下内容

${CHANGES_SINCE_LAST_SUCCESS, reverse=true, showPaths=true}

If you want just the last build you can change it back to changes. 如果只需要最后一个版本,则可以将其更改回更改。 But I like to have all of the changes since the last successful build in case a build fails. 但是我喜欢自上次成功构建以来的所有更改,以防构建失败。
Reverse will show the latest build first and show paths will show the files you edited. 反向将首先显示最新版本,并且显示路径将显示您编辑的文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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