Jenkins CHANGES_SINCE_LAST_SUCCESS插件变量为空

时间:2019-01-28 12:08:47

标签: jenkins continuous-integration

我为Jenkins作业安装了自上次成功以来的更改插件。在Jenkins作业的Build步骤中,我试图回显CHANGES_SINCE_LAST_SUCCESS变量的值。不幸的是,该变量没有任何价值。我将此值回显到作业工作区中的文件中。

1 个答案:

答案 0 :(得分:0)

您需要 Email-ext plugin

自上次成功以来的更改插件与 CHANGES_SINCE_LAST_SUCCESS 变量无关。

https://wiki.jenkins.io/display/JENKINS/Changes+Since+Last+Success+Plugin

This plugin adds a build action to aggregate changes from all previous builds to the last successful one. The primary goal is to generate a changelog to be used for continuous delivery, as an aggregate for all changes since the last deployable artifact. 

Additionally, this plugin can be used to generate a changelog for an arbitrary range of builds:...