在 Jenkins gerrit-trigger plugin中,我们可以自定义构建消息,不知道我们是否可以在里面使用变量?
像下面的${PORT}
?
在 2017.03.31 更新,看起来已经有问题JENKINS-37885
在 Jenkins gerrit-trigger plugin中,我们可以自定义构建消息,不知道我们是否可以在里面使用变量?
像下面的${PORT}
?
在 2017.03.31 更新,看起来已经有问题JENKINS-37885
我认为您可以使用格式中的任何作业参数<PARAMETER>
和格式为 $VARIABLE 的任何构建环境变量。
在 Gerrit 插件帮助(“?”)中写道:
The following standard <PARAMETER> values are available:
GERRIT_NAME: The Gerrit project name.
CHANGE_ID: The Gerrit Change-Id (SHA-1).
BRANCH: The branch of the project.
CHANGE: The change number.
PATCHSET: The patchset number.
PATCHSET_REVISION: The patchset revision.
REFSPEC: The ref-spec. (refs/changes/xx/xxxx/z).
BUILDURL: The URL to the build.
VERIFIED: The verified vote.
CODE_REVIEW: The code review vote.
NOTIFICATION_LEVEL: The notification level. (always ALL)
The following special <PARAMETER> values are available:
STARTED_STATS: The number of builds started out of the total triggered like "(1/3)". If there is only one build triggered then the value is empty.
You can also use any environment variable from the build that was started with the $ENV_VAR syntax.